[Samba] LDAP (Schemas,Users) to Samba4 migration

Andrew Bartlett abartlet at samba.org
Thu Apr 11 05:43:43 MDT 2013


On Thu, 2013-04-11 at 01:00 -0700, alxgrb wrote:
> Hi,
> 
> please look at this:=>
> 
> alxgrb at ubsrv:~ sudo /usr/local/samba/bin/smbclient -L localhost -U%
> Domain=[DEMO] OS=[Unix] Server=[Samba 4.0.5]
> 
> 	Sharename       Type      Comment
> 	---------       ----      -------
> 	netlogon        Disk      
> 	sysvol          Disk      
> 	home            Disk      Home drive
> 	data            Disk      Data disk
> 	IPC$            IPC       IPC Service (Samba 4.0.5)
> Domain=[DEMO] OS=[Unix] Server=[Samba 4.0.5]
> 
> 	Server               Comment
> 	---------            -------
> 
> 	Workgroup            Master
> 	---------            -------
> 
> The testuser.ldif file:=>
> cat testuser.ldif
> dn: uid=bmontag,ou=Users,dc=demo,dc=lan
> objectClass: inetOrgPerson
> objectClass: organizationalPerson
> objectClass: person
> objectClass: posixAccount
> objectClass: shadowAccount
> objectClass: top
> cn: Brigitte Montag
> gidNumber: 10001
> homeDirectory: /home/bmontag
> sambaSID: -59220
> sn: Montag
> uid: bmontag
> uidNumber: 29110
> displayName: Brigitte Montag
> givenName: Brigitte
> loginShell: /bin/bash
> mail: brigitte.montag at mailserver.com
> 
> I have tried add the testuser.ldif file to sam.ldb:=>
> sudo /usr/local/samba/bin/ldbadd -H /usr/local/samba/private/sam.ldb
> testuser.ldif 
> ERR: No such object : "objectclass: Cannot add
> uid=bmontag,ou=Users,dc=demo,dc=lan, parent does not exist!" on DN
> uid=bmontag,ou=Users,dc=demo,dc=lan at block before line 18
> Add failed after processing 0 records
> 
> What do I have to do to make my ldbadd work??

change ou=users to cn=users.

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list