LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Winbind, Samba, NT (https://www.linuxquestions.org/questions/linux-networking-3/winbind-samba-nt-73609/)

acb67 07-17-2003 01:26 PM

Winbind, Samba, NT
 
I am trying to get authentication against AD using Winbind and Samba 3. We use Kerberos 5 as well. I know that winbind is running properly because when I run wbinfo -a, I get success messages. The problem seems to be when I try to play with the pam modules. For kicks, here is the pam module for sshd:

#%PAM-1.0
auth sufficient pam_winbind.so debug
auth sufficient pam_unix2.so # set_secrpc
auth required pam_nologin.so
auth required pam_env.so
account sufficient pam_winbind.so debug
account required pam_unix2.so
account required pam_nologin.so
password required pam_pwcheck.so
password required pam_unix2.so use_first_pass use_authtok
session required pam_unix2.so none # trace or debug
session required pam_limits.so

The frustrating thing is that nothing shows up in the logs. SInce the auth is set to sufficient above, I can still use the service using my local credentials. This shows up in the logfiles...it shows the pam_winbind failing while the pam_unix2 succeeding. But when I try to use the service with DOMAIN+username, nothing shows up in the logs. All I get is a permission denied when I try to use the service.

I don't know if this problem could be related to the fact that we are using Krb and the PDC might not be configured for that???? I am not familiar with the specifics of everything yet. Any ideas?? Any help is much appreciated.

Thank in Advance,
Aaron

acb67 07-18-2003 03:29 PM

Ok, I'm going a different route now. I've decided to play with the login pam module and I've made a little progress. The problem is now, though, when someone tries to login, the screen just resets itself. Nothing happens. Prompts for username and password and then it blinks back to the beginning. I looked in the logs and this is what I got:
________________________________
Jul 18 16:16:55 pam_winbind[20821]: Verify user `xxxx+xxxx'
Jul 18 16:16:55 pam_winbind[20821]: user 'xxxx+xxxx' granted acces
Jul 18 16:16:55 pam_winbind[20821]: user `xxxx+xxxx' not found
Jul 18 16:16:55 login[20821]: pam_unix2: pam_sm_acct_mgmt() called
Jul 18 16:16:58 login[20821]: pam_unix2: pam_ldap returned 10
Jul 18 16:16:58 login[20821]: User not known to the underlying authentication module
_________________________________

It is obviously authenticating, but then it dies and says user not found. Here is my login pam:
____________________________________
auth required pam_securetty.so debug
auth sufficient pam_winbind.so debug
auth requisite pam_unix2.so debug,nullok set_secrpc
auth required pam_nologin.so debug
auth required pam_homecheck.so debug
auth required pam_env.so debug
auth required pam_mail.so debug
account sufficient pam_winbind.so debug
account required pam_unix2.so debug
password required pam_pwcheck.so debug,nullok
password required pam_unix2.so debug,nullok use_first_pass use\
_authtok
session required pam_unix2.so debug,none # debug or trace
session required pam_limits.so debug
_____________________________________

NOTE: I think that the account module here is failing for pam_winbind...if I comment out the account pam_unix2 above, the entries in the log for pam_unix2 disappears. So for some reason winbind is failing here, but I don't know why. Is login tied to something else that I need to change?

Thanks.

acb67 07-22-2003 03:45 PM

I think I've gotten a step closer. The entry in pam 'account sufficient pam_winbind.so' performs a getpwnam() on the username. For some reason it doesn't seem to be going out the PDC to check the username. Does anyone know how I could change this?


All times are GMT -5. The time now is 02:28 AM.