Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-09-2006, 04:04 AM
|
#1
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
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?
|
|
|
03-09-2006, 04:23 AM
|
#2
|
Member
Registered: Jun 2005
Posts: 111
Rep:
|
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
shadow: files
group: files
could be changed to:
Code:
passwd: files ldap
shadow: files ldap
group: files ldap
But please, look this up in the documentation before making any changes. This information is probably incomplete, but maybe it helps pointing in the right direction.
|
|
|
03-09-2006, 06:17 AM
|
#3
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
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?
Last edited by rkrishna; 03-09-2006 at 06:26 AM.
|
|
|
03-09-2006, 09:31 AM
|
#4
|
Member
Registered: Aug 2002
Posts: 150
Rep:
|
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).
|
|
|
03-10-2006, 12:30 AM
|
#5
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
Quote:
openldap-clients is now in Slackware-Current,
|
ok i installed that, do i need to install nss ldap also along with the client?
|
|
|
03-10-2006, 03:41 AM
|
#6
|
Member
Registered: Aug 2002
Posts: 150
Rep:
|
That's correct.
|
|
|
03-11-2006, 01:35 AM
|
#7
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
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
|
|
|
03-11-2006, 02:57 AM
|
#8
|
Member
Registered: Aug 2002
Posts: 150
Rep:
|
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.
|
|
|
03-12-2006, 05:13 AM
|
#9
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
danieldk
Quote:
you correctly configure /etc/ldap.conf ?
|
how do we know, i am new to this
Quote:
Are there any relevant errors in the system logs?
|
means??
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
|
|
|
03-15-2006, 12:25 AM
|
#10
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
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
|
|
|
03-17-2006, 04:49 AM
|
#11
|
LQ Newbie
Registered: Sep 2003
Distribution: Slackware
Posts: 18
Rep:
|
"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.
|
|
|
03-17-2006, 05:16 AM
|
#12
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
also i made rc.openldap executable but it is not showing while system boots
|
If you want to authenticate against a LDAP server somewhere on your network, you do not need to run your own local LDAP server. So, there is no reason to run rc.openldap at boot.
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
echo "Starting LDAP server: /etc/rc.d/rc.oipenldap start"
/etc/rc.d/rc.openldap start
fi
That way, your script will run when Slackware boots (and it will show on the console). Disabling the script is as easy as "chmod -x rc.openldap"; you can leave the lines in rc.local intact.
Eric
|
|
|
03-17-2006, 07:06 AM
|
#13
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
thanks "Alien Bob" tht was a nice tip 
Quote:
f you want to authenticate against a LDAP server somewhere on your network, you do not need to run your own local LDAP server.
|
then how will i connect to an ldap server? i want authentication(there in other machines authconf will work)
Last edited by rkrishna; 03-17-2006 at 07:14 AM.
|
|
|
03-17-2006, 07:30 AM
|
#14
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Original Poster
Rep:
|
when i rebooted the machine i got this message
Code:
Starting LDAP server: /etc/rc.d/rc.openldap start
/etc/rc.d/rc.openldap: line 8: /usr/libexec/slapd: No such file or directory
i have installed "openldap-client-2.3.17-i486-1" downloaded from slack current "nss_ldap-244-i486-1wsa" from linuxpackages.
|
|
|
03-17-2006, 08:58 AM
|
#15
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
when i rebooted the machine i got this message
Starting LDAP server: /etc/rc.d/rc.openldap start /etc/rc.d/rc.openldap: line 8: /usr/libexec/slapd: No such file or directory
i have installed "openldap-client-2.3.17-i486-1" downloaded from slack current
|
Now what did I tell you just before... you do not need to run rc.openldap because you only need the client functionality. The openldap-client package does not contain the slapd program (the server component).
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 06:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|