LDAP configuration for shared users on 2 machines
I'm trying to configure a very basic ldap server on a LAN to enable a handful of users to identify on two machines with the same credentials, and ideally to navigate in a common directory structure.
I think I'm supposed to use an ldap server, so started to install openldap on my ubuntu 11.04 desktop.
I followed instructions found here "How-To set up a LDAP server and its clients | Debian/Ubuntu Tips & Tricks" (sorry, I can't post the url yet apparently. It's the top result if you google it), sudoing most of the steps and changing the DNS domain name for mymachine.my-sub-domain.my-domain.de (the publicly accessible address to my machine).
Then also changing every debuntu.local of their example to mymachine.my-sub-domain.my-domain.de and dc=debuntu,dc=local to dc=mymachine,dc=my-sub-domain,dc=my-domain,dc=de everywhere I can.
but I'm stuck here when trying to import all my users and groups.
when it asks me for a password. I give the one I entered during the dpkg-reconfigure slapd step and it just says:
ldapadd -x -W -D "cn=admin,dc=mymachine,dc=my-sub-domain,dc=my-domain,dc=de" -f ~/people_group.ldif
did I do something wrong? did I just forget to edit one file somewhere? I tried to edit the ldap.conf file that I find under /etc/ldap/ but anything I did either made the server unresponsive or just didn't change a thing...
ldap_bind: Invalid credentials (49)
if I ldapsearch as suggested at one point, it gives me this:
I know my understanding of the whole thing is a bit scarse, but I would really like to get that to work... any help will be greatly appreciated!
# extended LDIF
# base <dc=mymachine,dc=my-sub-domain,dc=my-domain,dc=de> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
# search result
result: 32 No such object
# numResponses: 1
Thanks a lot!