addUsersToGroup.sh

0 Likes
over 7 years ago

addGroupMembership.sh
created by Tyler Harris and Mukesh Jethwani


Description:
Reads in a file containg a list of users (FDN on each line) and adds them to the membership of the defined group and adds that group to the user by generating an LDIF that can then be applied by using the ldapmodify command.


To import the generated LDIF into the directory, see below:
ldapmodify -h host -p port -D "cn=admin,o=novell" -W -f LDIFfile


Requirements:




  • userlist must be a filename containing an FDN to a user on each newline. For example: cn=user1,o=users,o=novell

  • a valid group FDN

Labels:

Collateral
Comment List
Anonymous
Related Discussions
Recommended