Resetting user passwords
Novell Cool Solutions: Question & Answer
Q:
JB wrote: How do you change a user's password without deleting the user account? Can I reset all my user's passwords at one time to a default?
A:
Note: This solution no longer works for eDirectory 8.7.3 and later. It may still work with versions 8.6.2 and 8.7.0.
You can reset all users passwords using LDAP, as long as you login as Admin. The following LDIF syntax would reset a password:
dn: cn=jbiggs,=novell
changetype:modify
delete: userpassword
-
add: userpassword
userpassword: default_password
Note the delete: followed by the - and then add:. Normally, you can simply replace: a value but for some reason, with userpassword, you need to use two operations, though, you can include them in a single LDIF record if you use a -
Also note that you can easily generate the file by exporting all user DNs from LDAP and then using a Textpad or some other advanced editor to create this file.
To export all the usernames in a specific container, you can use ldapsearch (for some reason ice does not work with the 1.1 filter) using the following syntax:
ldapsearch -h server.novell.com -D cn=admin,o=novell -w password -b o=novell -s sub -LLL objectclass=user 1.1 >c:\temp\userlist.txt
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
