Unix Technical Forum

Sun Directory Server and SHA-encrypted passwords

This is a discussion on Sun Directory Server and SHA-encrypted passwords within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi All, I'm having a hell of a time trying to get Solaris 10 clients authenticate against a Sun ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-11-2008, 04:13 PM
Mark
 
Posts: n/a
Default Sun Directory Server and SHA-encrypted passwords

Hi All,

I'm having a hell of a time trying to get Solaris 10 clients
authenticate against a Sun Java System Directory Server 5.2
installation when using SHA-encrypted passwords. All the documentation
I can find assumes that standard Unix crypt-format passwords are used.

When the password policy is set to use crypt, things work perfectly -
but if I change the password policy to use SHA encryption, it locks me
out. I can still bind to the server using tools like ldapsearch with
SHA passwords, it just seems to be the Solaris login mechanism that
refuses to work.

Is there anyway I can store passwords encrypted via SHA and
authenticate with Solaris 10, or am I stuck with standard Unix crypt
passwords and the 8-character limit ?

Thanks,

-Mark

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-11-2008, 04:13 PM
Neal A. Lucier
 
Posts: n/a
Default Re: Sun Directory Server and SHA-encrypted passwords

Mark wrote:
> Hi All,
>
> I'm having a hell of a time trying to get Solaris 10 clients
> authenticate against a Sun Java System Directory Server 5.2
> installation when using SHA-encrypted passwords. All the documentation
> I can find assumes that standard Unix crypt-format passwords are used.
>
> When the password policy is set to use crypt, things work perfectly -
> but if I change the password policy to use SHA encryption, it locks me
> out. I can still bind to the server using tools like ldapsearch with
> SHA passwords, it just seems to be the Solaris login mechanism that
> refuses to work.
>
> Is there anyway I can store passwords encrypted via SHA and
> authenticate with Solaris 10, or am I stuck with standard Unix crypt
> passwords and the 8-character limit ?
>


You have to use pam_ldap to do authentication instead of pam_unix.

In /etc/pam.conf everywhere you see a line that looks like:
login auth required pam_unix_auth.so.1

You change it to the following two lines:
login auth binding pam_unix_auth.so.1 server_policy
login auth required pam_ldap.so.1 use_first_pass

Depending on how you have the ldapclient configured to connect to the
server (proxyagent or anonymous), you need to make changes to the
Directory Server so that pam_unix_auth cannot see the hashed password.

If you are using a proxyagent this is accomplished by removing the ACI
that is added by 'idsconfig' called:
LDAP_Naming_Services_proxy_password_read
which is normally applied to the top node of the DIT.

I assumed you were using either "simple" or "tls:simple" as your
authentication method, as with sasl/digest-md5 or sasl/cram-md5
you need to store passwords in the directory in cleartext.

Neal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-11-2008, 04:14 PM
Mark
 
Posts: n/a
Default Re: Sun Directory Server and SHA-encrypted passwords


> You have to use pam_ldap to do authentication instead of pam_unix.


Nice one - it's working a treat now.

Thanks,

-Mark

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com