*nix Thread, Apache with Winbind Authentication in Technical; I want to use winbind authentication on a site set up using Apahce on Debian Testing. The Apache config (before ...
-
30th March 2007, 08:00 AM #1 Apache with Winbind Authentication
I want to use winbind authentication on a site set up using Apahce on Debian Testing. The Apache config (before authentication options) all works.
The box has a working Winbind implementation. These are the relevant snippits added to the config...
Apache site config (/etc/apache2/sites-enabled/pykota)
Code:
<Directory...>
...
# Authentication stuff follows
AuthName "PyKota"
AuthPAM_Enabled on
AuthType Baisc
Require valid-user
</Directory>
Apache module config (/etc/apache2/mods-enabled/auth_pam.load)
Code:
LoadModule auth_pam_module /usr/lib/apache2/modules/mod_auth_pam.so
PAM config (/etc/pam.d/apache2)
Code:
@include common-auth
@include common-account
#%PAM-1.0
auth required pam_winbind.so
account required pam_winbind.so
HELP!
-
-
IDG Tech News
-
30th March 2007, 08:03 AM #2 Re: Apache with Winbind Authentication
theres a spelling error here
"AuthType Baisc"
-
-
30th March 2007, 08:04 AM #3 Re: Apache with Winbind Authentication
-
-
30th March 2007, 08:06 AM #4 Re: Apache with Winbind Authentication
Your welcome
-
-
30th March 2007, 08:11 AM #5 Re: Apache with Winbind Authentication
Still doesn't work mind!
From the Apache error log...
[Fri Mar 30 09:10:23 2007] [error] [client 192.168.1.30] (9)Bad file descriptor:
Could not open password file: (null)
-
-
30th March 2007, 09:10 AM #6 Re: Apache with Winbind Authentication
Code:
auth required pam_winbind.so
account required pam_winbind.so
This is incorrect. Try this instead (don't bother with the includes).
Code:
auth sufficient pam_winbind.so debug
auth required pam_unix.so nullok_secure debug
account sufficient pam_unix_acct.so debug
account required pam_winbind.so debug
-
-
30th March 2007, 09:18 AM #7 Re: Apache with Winbind Authentication
@Geoff: Still doesn't work...

Originally Posted by
Apache error.log [Fri Mar 30 10:16:05 2007] [error] Internal error: pcfg_openfile() called with NULL filename
[Fri Mar 30 10:16:05 2007] [error] [client 192.168.1.30] (9)Bad file descriptor: Could not open password file: (null)
-
-
30th March 2007, 09:27 AM #8 Re: Apache with Winbind Authentication
Does apache have read access to /etc/passwd?
-
-
30th March 2007, 09:29 AM #9 Re: Apache with Winbind Authentication
-
-
30th March 2007, 10:04 AM #10 Re: Apache with Winbind Authentication
and the winbind named pipe?
-
-
30th March 2007, 10:36 AM #11 Re: Apache with Winbind Authentication
where's that at Geoff? I cannot seem to find it
ops:
-
-
30th March 2007, 10:50 AM #12 Re: Apache with Winbind Authentication
This how you can find out (In this instance, the machine is Ubuntu 6.06 LTS AMD64 Server):
Code:
root@titan:~# netstat -ap | grep winbind.*pipe
unix 2 [ ACC ] STREAM LISTENING 9167 3862/winbindd /tmp/.winbindd/pipe
unix 2 [ ACC ] STREAM LISTENING 9170 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203312030 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308842 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308824 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308820 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308788 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308765 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308733 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308725 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308721 3862/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 203308715 3862/winbindd /var/run/samba/winbindd_privileged/pipe
-
-
30th March 2007, 11:15 AM #13 Re: Apache with Winbind Authentication
OK... output is
Code:
debian-02:/etc# netstat -ap | grep winbind.*pipe
unix 2 [ ACC ] STREAM LISTENING 1233638 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ACC ] STREAM LISTENING 1233636 29611/winbindd /tmp/.winbindd/pipe
unix 3 [ ] STREAM CONNECTED 1374247 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1374243 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1372204 29611/winbindd /tmp/.winbindd/pipe
unix 3 [ ] STREAM CONNECTED 1372091 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1372087 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371981 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371624 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371620 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371524 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371520 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371516 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371512 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1371508 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1368759 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1368755 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1368298 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1368294 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1366457 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1366453 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1324497 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1297531 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1238739 29611/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238084 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238080 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238058 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238054 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238041 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238037 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238022 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1238018 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1235117 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 2 [ ] STREAM CONNECTED 1235113 30953/winbindd /var/run/samba/winbindd_privileged/pipe
unix 3 [ ] STREAM CONNECTED 1234121 29611/winbindd /var/run/samba/winbindd_privileged/pipe
debian-02:/etc# ls -l /var/run/samba/winbindd_privileged/
total 0
srwxrwxrwx 1 root root 0 2007-03-27 11:43 pipe
debian-02:/etc# ls -l /tmp/.winbindd/
total 0
srwxrwxrwx 1 root root 0 2007-03-27 11:43 pipe
Access looks OK to me :?
-
-
30th March 2007, 11:26 AM #14 Re: Apache with Winbind Authentication
No. Whats the permissions on the directory containing the pipe?
-
-
30th March 2007, 11:55 AM #15 Re: Apache with Winbind Authentication
Code:
drwxr-xr-x 2 root root 4096 2007-03-27 11:43 .winbindd
Access permissions still look OK to me.
-
SHARE:
Similar Threads
-
Replies: 70
Last Post: 13th November 2009, 02:51 PM
-
Replies: 6
Last Post: 21st September 2007, 03:05 PM
-
By CyberNerd in forum *nix
Replies: 3
Last Post: 14th September 2007, 09:19 AM
-
Replies: 25
Last Post: 7th March 2006, 04:12 PM
-
Replies: 4
Last Post: 14th November 2005, 06:05 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules