Hi,

please look at this:=>

alxgrb@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.mon...@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??

Thanks,
Alexander




--
View this message in context: 
http://samba.2283325.n4.nabble.com/LDAP-Schemas-Users-to-Samba4-migration-tp4646168p4646559.html
Sent from the Samba - General mailing list archive at Nabble.com.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to