[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Adding a new user to existing LDAP group



Hi,

Subbarao Karanam <gudikal_karanam@yahoo.com> writes:

> We already have a created LDAP Database with multiple groups and users.Now I want to add  a new user
> and assign him to existing group                                                                    
>                                                                                                     
> I have created a newuser.ldif  file as follows                                                      
> dn: uid=test,ou=people,dc=crmsldap,dc=agilent                                                       
> changetype: add                                                                                     
[...]                                     
>                                                                                                     
> dn: cn=admin,ou=groups,dc=crmsldap,dc=agilent                                                       
> changetype: modify                                                                                  
> memberUid: test                                                                                     
>                                                                                                     
> When I run the script                                                                               
>                                                                                                     
> /opt/symas/bin/ldapmodify -x -D "cn=Manager,dc=crmsldap,dc=agilent" -W -f newuser.ldif              
> it gives an error as follows                                                                        
>
> ldapmodify: modify operation type is missing at line 21, entry "cn=admin,ou=groups,dc=crmsldap,dc=  
> agilent"                                                                                            

Your ldif file is badly designed, man ldapmodfiy(5) has some good
examples.

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:8EF7B6C6
53°37'09,95"N
10°08'02,42"E