Solaris 8 with OpenLDAP: Scripts
Sample Scripts for Account ManagementHere are some scripts I have written for manipulating users within the directory server. One thing to notice is that if you create a file named /var/tmp/noupdate, then all of the scripts that make modifications will fail.
If you use any of this helpful or useful, drop me a line at email@example.com and let me know. I generally make updates to this code to add features, bug fixes, etc.
Useful PHP scripts for LDAP manipulation:
A tar file of all of the scripts mentioned below.
- LDAP Class for PHP (required for everything below)
A PHP class used for manipulating an LDAP directory. Full
documentation can be found at the LDAP Class for PHP
- USER Class for PHP (required for everything below)
A PHP class used for manipulating users inside an LDAP directory.
Modifies a user's password.
Adds a user to the directory.
Deletes a user from the directory.
Locks a user by adding a *LK* in front of the user's password.
Unlocks a user that was previously locked with lockuserLDAP.php
Converts a standard passwd file or niscat passwd table dump to an LDIF file
to be used for importing users.
Displays a users passwd entry in passwd file format. It is similar to nismatch.
"GREPs" through the LDAP directory passwd entries. It is similar to nisgrep.