1. Create the first ldap server
To create a ldap server type command
mksecldap -s -a cn=admin -p adminpwd -S rfc2307aix
2. Add/Create a new domain
To Add a new domain named dcmdata.com
mksecldap -s -a cn=admin -p adminpwd -S rfc2307aix -d "dc=dcmdata,dc=com"
2. If you want to create a container(OU -orgainization unit)
To add a OU in domain dcmdata.com
mksecldap -s -a cn=admin -p adminpwd -S rfc2307aix -d /
"ou=users,dc=dcmdata,dc=com"
4. Creating a ldap client in ldap server
To add a client in ldap server dcmdata.com
mksecldap -c -h 193.9.200.229 -a cn=admin -p adminpwd -d "dc=dcmdata,dc=com"
5. Create a user in ldap server
To add a user shivas in doman dcmdata.com
mksecldap -c -h 193.9.200.229 -a cn=admin -p adminpwd -d "dc=dcmdata,dc=com"
-u shivas
6. CReating the first user (type ldap) in Aix and add in ldap
To add a user in Aix
mkuser aswe
To add users entry in ldap
mksecldap -c -h 193.9.200.229 -a cn=admin -p adminpwd -d "dc=dcmdata,dc=com" -u aswe
To add a user after making ldap server is down
ldapcfg -u "cn=root" -p galaxy123