RE: Password modify

2011-02-18 Thread Dan Cutler
Not sure if this applies to you but changing a pw against Active Directory (with or without ldif files) requires an LDAPS connection from client to server. -Original Message- From: Prentice Bisbal [mailto:prent...@ias.edu] Sent: Friday, February 18, 2011 5:20 PM To: perl-ldap@perl.org Su

Re: Password modify

2011-02-18 Thread Prentice Bisbal
I know these questions may sound dumb, but bear with me: 1. Are you sure that the entry you are trying to modify exists in LDAP? Can you find it by doing an ldapsearch? 2. Are you sure the attribute that holds password is named 'userPassword'? This is really a simple task, which makes me think

Re: Password modify

2011-02-18 Thread Dieter Kluenter
Am Thu, 17 Feb 2011 11:10:46 -0600 schrieb Robert Threet : > I have a working Net::LDAP::Entry program for adding users so I > decided to gut it to create a userPassword changer. > > I keep getting "Error changing password: no objectClass attribute". > > I cannot find examples doing simple one-a

Re: Password modify

2011-02-18 Thread Brian Reichert
On Thu, Feb 17, 2011 at 11:10:46AM -0600, Robert Threet wrote: > I have a working Net::LDAP::Entry program for adding users so I decided > to gut it to create a userPassword changer. > > I keep getting "Error changing password: no objectClass attribute". > > I cannot find examples doing simple on

Re: Password modify

2011-02-18 Thread Prentice Bisbal
Robert, I have been using Net::LDAP to create accounts one at a time for about a year now. Based on the error you are seeing, I suspect that you are forgetting to add the correct objectClass that contains the attribute you want to store the attribute in. Searching your code, I don't see you addin

Password modify as admin

2011-02-18 Thread Robert Threet
Not sure this went the first time ... I have a working Net::LDAP::Entry program for adding users so I decided to gut it to create a userPassword changer. I keep getting "Error changing password: no objectClass attribute". I cannot find examples doing simple one-at-a-time adds like this. All I c

Password modify

2011-02-18 Thread Robert Threet
I have a working Net::LDAP::Entry program for adding users so I decided to gut it to create a userPassword changer. I keep getting "Error changing password: no objectClass attribute". I cannot find examples doing simple one-at-a-time adds like this. All I can find are examples using arrays and h

Re: What's wrong with this code?

2011-02-18 Thread Prentice Bisbal
Chris Ridd wrote: > On 17 Feb 2011, at 21:13, Prentice Bisbal wrote: > >> I cut off the last line of the errors, which says this, which might be >> an additional clue: >> >> ntUserDomainId: value #0 invalid per syntax > > What does your $ntUserDomainId value look like? > > If you call $ldap->de