LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-21-2014, 02:40 PM   #1
strepronigrin
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
kerberos + OpenLDAP + NSS + CyrusSASL; no PAM on slackware?


Greetings fellow Slackers,
Is anyone running krb5 + ldap + sasl + nss on Slackware?
I don't believe that it is mandatory to integrate with PAM - just that it makes it easier to implement.
I'd appreciate your thoughts on this.
Thanks.
 
Old 12-21-2014, 02:58 PM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Unfortunately, it is mandatory, despite the odd misinformed rumour. No PAM in Slackware is a PITA for me.
 
Old 12-21-2014, 03:42 PM   #3
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
Depends on why you need LDAP. If its active directory you want to integrate with than up to Slackware 14.1 (never tried on current) you can mostly integrate a Slackware machine as a domain member server, Samba does all the LDAP work.

Basic steps.

1) install the MIT kerberos package. Its on slackbuilds.
1a) make certain openldap is installed
2) rebuild Samba using the original slackbuild script
2a) rebuild sshd with kerberos support
3) configure samba rid/sid mapping and join the domain.
4) modify /etc/inittab to pass the -l argument to agetty, use login.krb binary as the logon program
5) modify /etc/rc.d/rc.samba to start/stop windbindd as well ans smbd and nmbd
6) update /etc/nsswhich.conf to use files and than windbind (for passwd and group)
7) test windbind, test getent
8) reboot

This configuration has some limitations. You will be able login at the console or with ssh using domain credentials, you can use windows groups and users for file ownerships etc. Other packages like proftp / apache / imapd etc will see group memberships and be able to get a listing of users but will NOT be able to authenticate a user; they have no way to obtain the password hashes.

Its usually possible to work around these things, for instance I used to need to host FTP in such an environment. You can setup radius on windows, proftp can authenticate with radius and then at the FS level the windows users and groups just work(tm).

I actually requested Pat add radius support to his proftpd build once upon a time for this reason and he was gracious enough to do so!

One thing I am sure that derailed kikinovak, that I never solved was an X greeter. If you intend to use X you will have to login at run level three and do startx. Way back on like Slackware 10.2, I had some patches for XDM that I did myself but they quick applying along time ago.


So it really depends on what your needs are exactly; it can mostly work but you will run across the odd thing from time to time that is unable to authenticate.

*edit

Just to make one more comment. PAM is actually a very useful abstraction of solving this problem. This method touches few Slackware packages than going down the path of rebuilding stuff all up and down the tree to support PAM, which means you apply most patches and upgrade more easily when the time comes. However It is kuldgy as hell.

Last edited by chemfire; 12-21-2014 at 04:01 PM.
 
Old 12-21-2014, 04:57 PM   #4
strepronigrin
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the feedback.

I'm not trying to integrate with AD. Our environment, fortunately, (depending on how you look at it, is not host to any windows machines. I use startx and blackbox on my own machine cause I tend to work in shell sessions, for the most part. I wanted to set up a test environment so I can work out a few details.

Cheers, all
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM Kerberos and ADS for Slackware-current - Call for testing ivandi Slackware 95 08-05-2015 10:46 PM
LXer: Red Hat: 2014:1073-01: nss, nss-util, nss-softokn: Low Advisory LXer Syndicated Linux News 0 08-18-2014 09:10 PM
Slackware openLDAP server - is pam installation necessary? sljunkie Linux - Networking 1 07-26-2013 04:11 PM
[SOLVED] Does OpenLDAP / NSS / PAM produce logs of failed login attempts? peridian Linux - Security 2 02-17-2011 03:51 PM
OpenLDAP SSL/TLS problem with pam/nss humbletech99 Linux - Server 0 06-12-2009 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration