LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba/ldap issue sambasid attribute type undefined (https://www.linuxquestions.org/questions/linux-newbie-8/samba-ldap-issue-sambasid-attribute-type-undefined-944466/)

butch601 05-11-2012 03:18 PM

samba/ldap issue sambasid attribute type undefined
 
Hello Everybody,
For some reason we can not replicate the existing ldap to a second server. The error that we are seeing is the 'sambasid attribute type undefined'.
It was actually working, it stopped and we don't know why.
If somebody has any suggestions we'd appreciate it

thanks,
Butch

djsoundfx 05-12-2012 10:28 PM

Quote:

Originally Posted by butch601 (Post 4676236)
Hello Everybody,
For some reason we can not replicate the existing ldap to a second server. The error that we are seeing is the 'sambasid attribute type undefined'.
It was actually working, it stopped and we don't know why.
If somebody has any suggestions we'd appreciate it

thanks,
Butch

So sambasid is an attirbute in your samba schema (should be in /etc/openldap/schema/ by default [or another dir if specified in your slapd.conf]... check your samba.schema on each server and make sure they match. Something like:
Code:

dn: sambaDomainName=myserver,ou=samba,dc=example,dc=com
objectClass: sambaDomain
sambaDomainName: myserver
sambaSID: S-1-0-0

Then when you bring up regular user entries from your db you should have something that matches that sambaSID format (except for the last digits):
Code:

objectClass: sambaSamAccount
sambaAcctFlags: [U          ]
sambaLMPassword: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sambaNTPassword: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
sambaSID: S-1-0-0-28976

For more examples you can check out the examples/LDAP/samba.schema in the Samba source distribution, or at /usr/share/doc/samba-ver/LDAP/samba.schema


All times are GMT -5. The time now is 01:18 PM.