Solaris 10 + pam_krbs + Active Directory.. What am I doing wrong?

Nicolas Williams Nicolas.Williams at
Fri Mar 3 00:52:01 EST 2006

On Thu, Mar 02, 2006 at 10:09:50PM +0000, SirBob Shark___007 wrote:
> I have now set up pam to use, but I get the error
> "krb5_verify_init_creds failed: New Password cannot be zero length" when I 
> try to log on using any pam enabled service (ssh, console, pop3 ect). 

That is very odd indeed!  We'll take a look tomorrow.

> Dispite the error, in the Windows event log, I see a sucessfull logon.

Yes, because the Kerberos V AS exchange succeeded -- that's all a KDC
needs to decide to log a successful logon event message.

> If I monitor the network trafic I see the following error:
> ========================================================
> ========================================================

This is normal.

> I am not sure if this is something that is a actual error, or just part of 
> the normal Krb5 communication before a user is prompted to for their 
> password.
> I found that if I went into the users account on the AD controler and 
> checked off the box
> "Do not require Kerberos preauthentication" I would get the error "PAM-KRB5 
> (auth): krb5_verify_init_creds failed: Matching credential not found"

Is DNS configured on the Solaris machine?  Does the principal name you
gave the host match the canonical FQDN for its nodename?

> pam.conf     (this has changed about a thousand times in my attempts)
> =======================
> login auth requisite
> login auth required
> #login auth sufficient /usr/lib/security/ try_first_pass
> login auth optional
> login auth required
> login auth required
> login auth required

The man page for pam_krb5 has a correct example.  Try making pam_krb5 be
sufficient, and if you do then make sure that pam_unix_cred comes first,
before pam_krb5.

Also, the 'login' service only applies to console text logins -- you
probably don't want to use pam_krb5 for that service, but for dtlogin,
sshd-*, etc...  or just 'other'.


More information about the Kerberos mailing list