Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What ACL should be added slapd.conf to allow users to change their password. We are now having the default ACL allowing only rootdn the rights to modify while allowing reading by everyone including anonymous.

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

Try something along the lines of:

access to attrs=userPassword
        by self write
        by anonymous auth
        by users none

access to * by * read

(Note that for security reasons you DON'T want everyone able to read the UserPassword attribute -- that would allow people to skim your shadow/encrypted passwords & run a crack program against them easily.)


Edit to add requested explanation of the access to attrs=userPassword ACL above

by self write
The logged in user can write (change) their own userPassword attribute -- this is what lets you change your password.

by anonymous auth
Anonymous users (ones who bound to the directory anonymously - that is, without specifying a DN & password) may access userPassword for the sole purpose of authentication (they don't have access to it for any other purposes, like searching or browsing).

by users none
This denies logged in users access to anyone else's userPassword attribute. Theoretically this could be auth as well, but normally (At least in my environment) a logged-in user shouldn't need to authenticate/bind as another user.

share|improve this answer
    
Can you please explain the ACL ? I understand that user is given right to self write password and anonymous users to authenticate. But what is " by users none". After adding the ACL the people currently logged in are not able to autheticate. –  nitins Jan 12 '11 at 4:24
    
@nitins See the edit above ; note that each more permissive level encompasses the levels below it (e.g. "write also grants read; read also grants auth) –  voretaq7 Jan 12 '11 at 16:02
    
Thanks ! voretaq7 –  nitins Jan 13 '11 at 5:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.