Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-24-2009, 03:23 AM
|
#1
|
LQ Newbie
Registered: May 2009
Posts: 2
Rep:
|
RHEL 5 - User can't change password for OpenLDAP account
Hi All,
I setup Openldap server on RHEL5, import info from /etc/password into LDAP database. Now I can log on using Openldap accounts (user1), but I don't know how to change password. Could you show me how to do that ? Command "passwd" only works with local accounts.
Thank you and best regards.
-------------------------------
Last login: Tue Nov 24 23:15:48 2009
Could not chdir to home directory /home/user1: No such file or directory
-bash-3.2$ passwd
Changing password for user user1.
passwd: Authentication token manipulation error
-bash-3.2$
|
|
|
11-24-2009, 10:12 PM
|
#2
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
Last edited by irishbitte; 11-24-2009 at 10:15 PM.
|
|
|
11-25-2009, 03:58 AM
|
#3
|
LQ Newbie
Registered: May 2009
Posts: 2
Original Poster
Rep:
|
Thank you. I'll try.
|
|
|
01-06-2010, 12:45 AM
|
#4
|
LQ Newbie
Registered: Jan 2010
Posts: 3
Rep:
|
No luck
I tried using the PAM settings from the mandriva article, but no luck.
I still get:
LDAP password information update failed: Insufficient access.
(The problem seems to have been around for almost 10 years (doing a google search), but just can't find a solution. I've modified the slapd.conf to allow self access to userpassword, which seems to be what everyone recommends, but still no luck).
|
|
|
01-06-2010, 04:52 AM
|
#5
|
LQ Newbie
Registered: Jan 2010
Posts: 3
Rep:
|
I've tried all sorts of variations of the ACL list, but still can't get it to change the password.
My LDAP Server log has the following:
vm0 slapd: conn=2 op=4 BIND dn="uid=me,ou=users,o=mas" mech=SIMPLE ssf=0
vm0 slapd: conn=2 op=4 RESULT tag=97 err=0 text= Jan 7 33:25 vm001 slapd[16539]: conn=2 op=5 MOD dn="uid=me,ou=users,o=mas"
vm0 slapd: conn=2 op=5 MOD attr=userPassword
vm0 slapd: => access_allowed: backend default write access denied to "uid=me,ou=users,o=mas"
I've tried adding
access to attrs=userPassword,shadowLastChange
by self write
by anonymous auth
by * none
To both the global directive and the specific directive for the DB,but both give the same result.
|
|
|
01-08-2010, 09:37 PM
|
#6
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
Hmmm. Can't quite recall, but I believe there is something about how LDAP is setup on the client, whether the client has root/admin access for such things. Unfortunately, OpenLDAP is a much modified beast, so you may need more expert assistance than I can offer you.
A suggestion: Try setting up a test client, maybe a vm, and configure it for LDAP access to your server, and note all the steps you need to get it working. The client may be the problem...
Also, just to check, what type of clients are bound to the server? Linux-distro, Windows?
|
|
|
01-08-2010, 09:43 PM
|
#7
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
Just noticed this:
Quote:
backend default write access denied to "uid=me,ou=users,o=mas
|
what backend are you using? It should really only be the DB itself?
|
|
|
01-08-2010, 09:50 PM
|
#8
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
|
|
|
01-09-2010, 05:52 AM
|
#9
|
LQ Newbie
Registered: Jan 2010
Posts: 3
Rep:
|
Solution
I found my problem. When changing the ACL, I had originally copied the default line from the main section of the file into my dabatase section. That line included a space as the begining. I also included a space at the start my access line as well (since the stuff that was already there had it).
I needed to delete the space before the 'access' directive, once I did this for both entries, the problem went away, and user accounts are able to change passwords:
Code:
access to attrs=userPassword,shadowLastChange
by self write
by anonymous auth
by * none
access to *
by self write
by * read
(The space means that it is a continuation of the previous line, so for 'by' lines it is appropriate).
thanks,
James
|
|
|
01-10-2010, 02:07 PM
|
#10
|
Senior Member
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Rep:
|
excellent, glad you got sorted...
|
|
|
01-18-2011, 06:09 PM
|
#11
|
Member
Registered: Dec 2006
Posts: 109
Rep:
|
Quote:
Originally Posted by palladin68
I found my problem. When changing the ACL, I had originally copied the default line from the main section of the file into my dabatase section. That line included a space as the begining. I also included a space at the start my access line as well (since the stuff that was already there had it).
I needed to delete the space before the 'access' directive, once I did this for both entries, the problem went away, and user accounts are able to change passwords:
Code:
access to attrs=userPassword,shadowLastChange
by self write
by anonymous auth
by * none
access to *
by self write
by * read
(The space means that it is a continuation of the previous line, so for 'by' lines it is appropriate).
thanks,
James
|
palladin68
thanks a lot
your code
Code:
access to attrs=userPassword,shadowLastChange
by self write
by anonymous auth
by * none
access to *
by self write
by * read
helped me to be able to change password for users
|
|
|
All times are GMT -5. The time now is 01:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|