Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Net::LDAP::Entry->update hangs

by mikfire (Deacon)
on Mar 02, 2004 at 19:41 UTC ( #333351=note: print w/replies, xml ) Need Help??


in reply to Net::LDAP::Entry->update hangs

Could you post the equivalent LDIF for this record? Also, have you checked the errors logs on the LDAP server to see what it thought was going on?

Just some other, random debug thoughts. Have you tried to seperate the creation from the population of the fields -- ie,

$entry = new Net::LDAP::Entry->new; $entry->dn($dn); $entry->update($ldap); $entry->add....

If I can see the resultant LDIF, I may be able to offer more assistance.

Replies are listed 'Best First'.
Re: Re: Net::LDAP::Entry->update hangs
by selena (Acolyte) on Mar 02, 2004 at 21:05 UTC
    Yes - I did try what you suggested. The error I got is that no attributes are available for updating. *grr!* There was some other thing I saw in Net::LDAP::Entry about using 'newrdn' attribute and changetype('moddn').. that didn't work either. Here's what I did to create an LDIF:
    open(FILE, ">$u.ldif"); Net::LDAP::LDIF->new(\*FILE, "w")->write($entry); close FILE;
    Here's the result:
    dn: cn=6c2f995b-c1de-41ee-8b70-07f134dac04a,ou=Misc,<censored> objectclass: person objectclass: inetOrgPerson objectclass: organizationalPerson objectclass: CourierMailAccount objectclass: CourierMailAlias objectclass: posixAccount objectclass: shadowAccount sn: McRitchie cn: T McRitchie cn: 6c2f995b-c1de-41ee-8b70-07f134dac04a givenname: T mail: tmcritchie@<censored> o: Misc telephonenumber: unknown title: unknown roomnumber: unknown homedirectory: /home/tmcritchie userpassword: {MD5}<censored> uidnumber: 20003 gidnumber: 20003 maildrop: tmcritchie shadowlastchange: 99999 shadowmax: 99999 shadowwarning: 7 uid: tmcritchie gecos: tmcritchie loginshell: /bin/false quota: 50

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://333351]
help
Chatterbox?
[Marshall]: I also looked into PerlApp from Active State, but they don't sell their Dev Kit independent of a very expensive ($1,200) per year license anymore.
[Corion]: I would assume that the PE format hasn't changed that much since the days of yore, but it seems that I would be wrong in that assumption
[Marshall]: When I bought my copy 15+ years ago, it was just a couple hundred bucks.
[Marshall]: I looked at MS specs for PE format and I didn't see any changes in last decade, but evidenly that would be wrong.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2016-12-08 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.