Navigation

Samba+Ldap+OpenSUSE

geeko.jpg

I spent the majority of last week trying to set up my server as a PDC (Primary Domain Controller). I followed a tutorial online to do this, and got pretty far in. When it came time to add users however, I received several errors.

  1. # usr/local/sbin/smbldap-useradd -m michael
  2. failed to perform search; No such object at /usr/local/sbin//smbldap_tools.pm line 427.
  3. Error looking for next uid in sambaDomainName=WIREDBYTE.COM,dc=wiredbyte,dc=com:No such object at /usr/local/sbin//smbldap_tools.pm line 1175.

I was trying to add a user using the smbldap-tools, which once working proved to be very handy.

The road I took to get the scripts working on the other hand - not so fun.

I tried various tutorials, then decided to stick with one that seemed the most relevant for my situation on the opensuse wiki.

I followed it through, and still got my error. I spent hours on Linux IRC channels without much help, and was even told that I was stupid for trying to get help for 3rd party tools (the smbldap-tools). I finally decided to give it one more go myself. I removed openldap2, deleted ALL my databases from /var/lib/ldap and reinstalled openldap2. I then populated the database again as described in the tutorial. Lo-and-behold.. it worked! t turns out I was missing some files required for LDAP to run correctly which was causing the issue.

I then tried to add my Windows XP Virtual machine to the new domain, and could not get it to accept credentials. Error: The user name was not found.

I Googled this error and came up with the solution:

There is another trick: go to Local Area Connection Properties of windows >
Tcp/ip properties > Advanced TCP/IP Settings > WINS tab, then add the ip
address of your PDC server (assumed it's a wins server either) and in the
netbios setting choose "Enable NetBIOS over TCP/IP". Good luck.

I plan on writing my own tutorial that is more explanatory about how to go about this massive configuration, but for now, please refer to the tutorials I have linked.