I've hacked stuff like this together, so I also agree this would be useful.
I'm not a huge perl whiz, but I'd be happy to help with testing, etc.
On Jan 19, 2010, at 2:45 PM, Justin Alcorn wrote:
> I do much the same thing with a series of roll-your-own systems running on
> Linux. I'd love to
Thanks Graham. That fixed the problem and the script works now. I
actually am able to set the password during the account creation
process. I have seen some reports of people unable to do that.
Another curiosity that may interest someone is that it appears I can not
modify a user and add a gro
That was a really stupid typo which has now been fixed.
I'm now getting errors that the entry exists, but I know for a fact that
it does not.
failed to add entry: 2071: UpdErr: DSID-030502F7, problem 6005
(ENTRY_EXISTS), data 0
Daniel Stutz wrote:
displayeName should read displayName.
Thanks for the suggestions so far but I'm still not having any luck. I
cleaned up the script a bit based on several of the suggestions.
I decided to take the password bit out for now. I can't create an
account with no password, so I'm setting userAccountControl to 514 so
the account will be cr
Now that I'm binding ok, I'm trying to create a user but running into
additional problems.
I'm running into this error:
failed to add entry: 0057: LdapErr: DSID-0C090B38, comment: Error in
attribute conversion operation, data 0, vece at ./create.pl line 36.
Thoughts?
#!/usr/bin/perl
us
Bingo. Adding that line showed me I was not binding correctly. I was
able to fix the problem.
I'm learning as I go so I appreciate the help.
Christopher A Bongaarts wrote:
You don't know if you're binding correctly, as you're not checking the
return value from the search. Try adding, between
I tried changing that line to:
$mesg = $ldap->search(filter=>"(cn=*)",
base=>"ou=subOU,ou=myOU,dc=ad,dc=myorg,dc=edu");
and still no output.
Andrej Ricnik-Bay wrote:
On 13/08/2008, John Arends <[EMAIL PROTECTED]> wrote:
$mesg = $ldap->search(filter=
I am trying to write a script to do some work with Active Directory.
Since my scripts need to run on a Linux machine, I have to use Net::LDAP.
I have been going through previous postings and have found some useful
information, but I am still having trouble. I took some code I wrote
that talked