Attempting to “Get into” LDAP #1
So I'm gonna try to find out howto. I've googled and found stuff that dates from 2001. They talk about samba, an unstable version, ldap v3 and things like that. I'm gonna try to make some sense of it and learn how to for myself. I'll describe what I do here, that way i don't forget or lose scribbled notes that make no sense.
Starting docs:
www.openldap.org/doc Admin guide
www.idealx.org/prj/samba/smbldap-howto.fr.html which mentions packages you should get, but it's specifically for redhat so it can get confusing...
www.yolinux.com/tutorials/LinuxTutorialLDAP.html could be worth a look... they have a good number of tutorials anyway...
So, before we can actually break anything, we need a swift apt-get of ldap.
$ apt-cache search ldap > i'll filter what looks interesting at this point:
- ldap-utils - OpenLDAP utilities
- libldap-2.2-7 - OpenLDAP libraries
- libldap2 - OpenLDAP libraries
- slapd - OpenLDAP server (slapd)
- ldap-account-manager - webfrontend for managing Unix and Samba accounts in an LDAP directory
- ldap2dns - LDAP based DNS management system.
- ldapdiff - Tool to synchronize ldap servers using ldif formatted input files
- ldapdns - DNS server that pulls data from an LDAP directory
- ultrapossum-server - ULtraPossum LDAP server
- ultrapossum-tls - UltraPossum startTLS support module
- webmin-ldap-netgroups - LDAP webmin module for editing netgroups
- webmin-ldap-user-simple - Ldap users control module for webmin (skolelinux)
- webmin-ldap-useradmin - LDAP user administration module for webmin
First question... HELP!!! which ones do i need?
Linux does this to you sometimes. It gives you like 10 different things that can do the same function, and you don't know enough to tell which ones are needed and which aren't?? Then you install everything and see what happens.
This is what I call a BAD IDEA. Just leads to confusion.
OK. I read that kde has an LDAP gui admin tool, and being a cli wanabee that needs help, i will grab it when i remember it's name.
Then again, being chicken, i think i'll bob back to IRC and ask some wise guru (even though i'll get RTFM as a reply)
--Abandons idea, goes to IRC, predicts getting annoyed and smoking a cigarette or 5 instead...--
IRC got me a lot of 'er, no idea man.... type of comments, or try google ;)
oh well. time for a cigarette then.
And should i install a dns server first? probably.
just installed Bind9 and webmin tools now, along with apache 2 and lots of dependencies.... ho hum!
libnss-ldap debconf config gave me this information:
For this package to work, you need to modify your /etc/nsswitch.conf to use the ldap datasource. There is an example file at /usr/share/doc/libnss-ldap/examples/nsswitch.ldap which can be used as an example for your nsswitch setup, or it can be copied over your current setup.
Also, before removing this package, it is wise to remove the ldap entries from nsswitch.conf to keep basic services functioning.
will do, at some point, when i realise its the reason its not working, probably...
Anyway, apache installed and bind9 too. Webmin setup and working from a remote connection (1m50 away.. but its still remote!!)
So, to bind... first, try to create a master zone. That done, now to see if i can setup a client to use this zone.... maybe even a dynamic update (Oooh!)
I just edited resolv.conf and put my server,
also removed it from hosts, to make sure it doesnt cheat...
cant find server on port 53.... could this be a firewall problem?
the tension mounts....
i deactivated the firewall, and no servers can be reached..... hmmmm.
ok. before this drives me mad... i'll regoogle DNS Howto
i wonder if ive bitten off more than i can chew......
