I need to add an existing user to an existing group with my new ldap setup, which is running on a Debian lenny server. Here's what I've got for an ldif file:
and here is my command and output:
robert:~# ldapmodify -x -D cn=admin,dc=newcrossroads,dc=net -W -f /var/tmp/adduser.ldif
Enter LDAP Password:
modifying entry "cn=johnstones,ou=Groups,dc=newcrossroads,dc=net"
ldap_modify: Object class violation (65)
additional info: attribute 'uniqueMember' not allowed
I've also attempted to do the job with ldapscipts with the following results:
robert:~# ldapaddusertogroup jess johnstones
Group johnstones not found (or jess already member of johnstones)
That last in particular confuses me; the group exists and every attempt I've made to add the user has failed. So two questions:
How do I write a proper ldif file to add a user to a group?
How do I view group membership?
Please bear in mind that I really don't know what I'm doing. I got ldap running more through good luck than good practices. Unfortunately the online guides I've found assume that you do know what you're doing, and I've been fighting with this for three days. Can anyone help?
- Readers' Choice Awards 2013
- Mars Needs Women
- RSS Feeds
- Sublime Text: One Editor to Rule Them All?
- December 2013 Issue of Linux Journal: Readers' Choice
- Raspberry Pi: the Perfect Home Server
- IBM Will Minimize Impact of Future Disasters
- Linux Systems Administrator
- Senior Perl Developer
- Technical Support Rep
- So girls had it better ?
24 min 56 sec ago
- Reply to comment | Linux Journal
45 min 3 sec ago
- why is GNOME 3 in the fifth position at 14.1 %?
6 hours 17 min ago
- Sublime Is Brilliant!
11 hours 20 min ago
11 hours 39 min ago
- Rapid[Disk,Cache] better than native ram caching?
12 hours 4 min ago
- Nothing is perfect
12 hours 17 min ago
- Mixtapes Community
17 hours 56 min ago
- KDE is one true DE
18 hours 31 min ago
- Command Line Shells (Bash, Zsh, etc.) are 2nd place
18 hours 59 min ago