Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LDAP and CUPS web auth problem (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bartmank
n00b
n00b


Joined: 09 Oct 2002
Posts: 14

PostPosted: Thu Jul 31, 2003 10:33 pm    Post subject: LDAP and CUPS web auth problem (Solved) Reply with quote

I have an interesting problem getting authorized to modify printers on my cups install.

A run down of the situation is thus:

1. install gentoo base system. use flags marked to use ldap, cups, and a few other programs.

2. Install cups 1.1.14 as that was the last version that I have gotten working.

3. Configure 2 network attached printers (Phaser7700 and a HP4si)

4. Install openldap 2.0.27, and configure it to do login authorization for users.

5. Try to configure the previously installed printer, via cups web interface, but cant seem to get root access to printer config. (Popup window with "username and password")

6. Screem bloody murder while boss says "This is why we dont use linux on the desktop"


I have 8 shell accounts that can log into the machine right now. root is _not_ in ldap, and my personal account is defined in both local files and ldap database. Everyone else is only in ldap. All shell accounts have been confirmed as working, including root.

If you need the config files posted, I'll do that in a follow-up. (Kinda long for a bb post)


Last edited by bartmank on Wed Mar 24, 2004 5:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
rwallace
Tux's lil' helper
Tux's lil' helper


Joined: 22 May 2003
Posts: 107
Location: Phoenix, AZ US

PostPosted: Thu Jul 31, 2003 10:56 pm    Post subject: Reply with quote

I have the same issues. But I'm using ldap for name service lookups and krb5 for authentication. If I modify my /etc/pam.d/system-auth to drop the krb5 modules, everything works fine and I can do administration from the web interface. Otherwise, it throws me out.

I have pam configured to try the unix module first, so it should check the passwd file first and only if that fails should ldap even come into play. I'm at work and don't have the log files around, but I seem to remember it was actually a problem with session or account settings in pam.

bartmank: Could you check the logs and post the error message pam is kicking up for you?
Back to top
View user's profile Send private message
bartmank
n00b
n00b


Joined: 09 Oct 2002
Posts: 14

PostPosted: Fri Aug 01, 2003 5:04 pm    Post subject: Reply with quote

Here is my pam config file. I followed an online howto as well as I could.
Code:

#%PAM-1.0
auth     required   /lib/security/pam_securetty.so
auth     required   /lib/security/pam_nologin.so
auth     sufficient /lib/security/pam_ldap.so
auth     required   /lib/security/pam_unix_auth.so use_first_pass

account  sufficient /lib/security/pam_ldap.so
account  required   /lib/security/pam_unix_acct.so

password required   /lib/security/pam_cracklib.so
password sufficient /lib/security/pam_ldap.so
password required   /lib/security/pam_unix_passwd.so use_first_pass md5 shadow

session  required   /lib/security/pam_mkhomedir.so skel=/etc/skel/ mask=0022
session  required   /lib/security/pam_unix_session.so


If there is a obvious mistake, I would have missed it, due to pam+ldap inexperience.
Back to top
View user's profile Send private message
bartmank
n00b
n00b


Joined: 09 Oct 2002
Posts: 14

PostPosted: Fri Aug 01, 2003 5:09 pm    Post subject: Reply with quote

Another problem I just noticed, su no longer works.
Back to top
View user's profile Send private message
bartmank
n00b
n00b


Joined: 09 Oct 2002
Posts: 14

PostPosted: Wed Mar 24, 2004 5:45 pm    Post subject: Solved Reply with quote

I fixed it by putting the following into the file /etc/pam.d/cups:
Code:

auth     required   /lib/security/pam_unix_auth.so

account  required   /lib/security/pam_unix_acct.so

password required   /lib/security/pam_unix_passwd.so md5 shadow

session  required   /lib/security/pam_unix_session.so

That way, it will only use the "normal" unix methods to auth root to get into cups.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum