+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 37
*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 ...
  1. #1

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    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!

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,938
    Thank Post
    114
    Thanked 272 Times in 250 Posts
    Rep Power
    104

    Re: Apache with Winbind Authentication

    theres a spelling error here

    "AuthType Baisc"

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    Re: Apache with Winbind Authentication

    Bugger!

  4. #4
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,938
    Thank Post
    114
    Thanked 272 Times in 250 Posts
    Rep Power
    104

    Re: Apache with Winbind Authentication

    Your welcome

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    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)

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    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

  7. #7

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    Re: Apache with Winbind Authentication

    @Geoff: Still doesn't work...

    Quote 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)

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: Apache with Winbind Authentication

    Does apache have read access to /etc/passwd?

  9. #9

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    Re: Apache with Winbind Authentication

    Yes

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: Apache with Winbind Authentication

    and the winbind named pipe?

  11. #11

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    Re: Apache with Winbind Authentication

    where's that at Geoff? I cannot seem to find it ops:

  12. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    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

  13. #13

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    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 :?

  14. #14

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: Apache with Winbind Authentication

    No. Whats the permissions on the directory containing the pipe?

  15. #15

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179

    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:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 70
    Last Post: 13th November 2009, 01:51 PM
  2. Ubuntu 6.06 and winbind/getent
    By webman in forum *nix
    Replies: 6
    Last Post: 21st September 2007, 03:05 PM
  3. Apache passthrough AD group authentication
    By CyberNerd in forum *nix
    Replies: 3
    Last Post: 14th September 2007, 09:19 AM
  4. Apache + IIS On the same box?
    By in forum Windows
    Replies: 25
    Last Post: 7th March 2006, 03:12 PM
  5. Replies: 4
    Last Post: 14th November 2005, 05: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
  •