Here are my LDAP notes I kept at work for easy access, note that the LDAP setup you use might be different but these can serve as a reference of sorts...
*AUTO_HOME IN LDAP:
In case of non directory errors for user when logging in, whilst the home directory is already created in the filer and auto_home points to +auto_home do this:
check for ldap added maps:
#ldaplist -l auto_home ---> if users in passwd are added here do the next step
craft ldif file: (fabroro.ldif)
dn: automountkey=fabroro,automountMapName=auto_home,dc=SYSTEST,dc=devel,dc=unix,dc=bernx,dc=com
automountKey: fabroro
objectClass: top
objectClass: automount
automountInformation: filer01:/vol/home/home/fabroro
add the user to the auto_home map:
#ldapmodify -h LDAP_SERVER -D "cn=Directory Manager" -a -f fabroro.ldif
ADDING USERS TO GROUPS IN LDAP:
create ldif:
dn: cn=prasol,ou=group,dc=PRE,dc=prod,dc=unix,dc=bernx,dc=com
changetype: modify
add: memberuid
memberuid: fabroro
add user to group:
#ldapmodify -h LDAP_SVR -D "cn=Directory Manager" -a -f usertogroup
Thursday, April 16, 2009
LDAP Commands Notes
Labels:
Tips n Tricks,
UNIX
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment