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
Parents
  • There is a "Download addUsersToGroup.sh" blue button right under the title of this article that downloads the zip file, which contains the script and an example list of users. The group can be configured in the script.
Comment
  • There is a "Download addUsersToGroup.sh" blue button right under the title of this article that downloads the zip file, which contains the script and an example list of users. The group can be configured in the script.
Children
No Data
Related Discussions
Recommended