openldap setup in slackware
in my department systems are shared using openldap (rh9-server, all the clients are mandriva) how can i set up openldap in slackware
i downloaded the slack pakg from linuxpackages, and installed do i need to go for pam? |
Using PAM should not be necessary. I haven't tinkered with LDAP yet, so I can only give a pointer. If everything is set up correctly, you should be able to use LDAP for authentication by configuring nsswitch via /etc/nsswitch.conf. The lines
Code:
passwd: files Code:
passwd: files ldap |
that means we need nss_ldap also??
i am googling but they were discussing about slapd, i dont want to setup a server, do i need slapd.conf.? i want to run ldap in the boot time also so an rc.openldap must be there no? |
Yep, you need nss_ldap, there is no good other way to make libc (and thus login) aware of LDAP for authentication. No need to run an LDAP server. Compiling nss_ldap and configuring ldap.conf should do the trick. openldap-clients is now in Slackware-Current, so you can download the SlackBuild from -current, and recompile it for 10.2 (I don't really know the LinuxPackages openldap package).
|
Quote:
|
That's correct.
|
tht means for connecting to ldap server u only need 2 packages ldpclient(got this from slackware)+nss_ldap(from linux pakgs)and
i editted nsswhich.conf as described in first reply added two entry to /etc/ldap.conf "host" and "base" only do i need to edit more in this conf file still now it is not working :( what else to be added to this conf file?? how do i do authconf(if i have pam), waht about authentication |
It should not be necessary to use PAM. If you use PAM, you will probably need other modules. Did you correctly configure /etc/ldap.conf ? Are there any relevant errors in the system logs? Is a connection to the LDAP server made?
You can check the last question by running tcpdump -i <ethernet interface> on one terminal, and trying to log in through LDAP on an other terminal. |
danieldk
Quote:
Quote:
tcpdump -i eth0 --is this correct?? and trying to log in through LDAP--how?? also i made rc.openldap executable but it is not showing while system boots |
someone help me, someone familiar with LDAP
please answer the questions from the previous post #9 (or else i wil read the help and manuals) where is danieldk |
"not showing during boot"
There is probably nothing to call it. You need to either start it manually i.e. "/etc/rc.d/rc.openldap start" or add that line to the end of rc.local (making sure that rc.local is executable.) Most of the other rc.scripts get called from rc.M or another script but custom ones usually need to be added. |
Quote:
TIP When you put a "rc" script in /etc/rc.d and make it executable, that does not mean that the script will be automatically started by Slackware when your computer boots. You will need to add something like the following lines to /etc/rc.d/rc.local (I am taking your rc.openldap script as an example): Code:
if [ -x /etc/rc.d/rc.openldap ]; then Eric |
thanks "Alien Bob" tht was a nice tip ;)
Quote:
|
when i rebooted the machine i got this message
Code:
Starting LDAP server: /etc/rc.d/rc.openldap start |
Quote:
About LDAP authentication in Slackware without using PAM: I know that this will not work with all LDAP servers. Try looking for more help, for instance on the alt.os.linux.slackware neewsgroup. I know of several regular posters there who have LDAP authentication on Slackware working. If you can not get it to work at all, you might want to consider installing Dropline Gnome on your computer. Dropline will install PAM on your computer as well as Gnome. Eric |
All times are GMT -5. The time now is 05:40 PM. |