Thanks Chris, It worked. ----- Original Message ---- From: Chris Ridd <[EMAIL PROTECTED]> To: Neo - <[EMAIL PROTECTED]>; [EMAIL PROTECTED] Sent: Friday, April 13, 2007 2:17:01 PM Subject: Re: nsaccountlock attribute
On 13/4/07 7:31, "Neo -" <[EMAIL PROTECTED]> wrote: > Hi, I am not able to retrieve nsaccountlock attribute value using net ldap. I > did able to retrive using ldapsearch command and ldap browser tools ..i am not > sure what i am doing wrong in the code any advise greatly appreciated. [...] > $result=$ldap1->search( > base => "$base", > scope => "$scope", > filter => "$filter", > ); You're implicitly asking the server for "all user attributes" here. > $arrayref7=$entry->get('nsAccountlock'); If nsAccountlock's an operational attribute (your server's documentation will say), you are not likely to get it returned by default with all the user attributes. Change the search so that it asks for it explicitly, perhaps including all user attributes as per: $result=$ldap1->search( base => "$base", scope => "$scope", filter => "$filter", attrs => [ "*", "nsAccountLock" ] ); Cheers, Chris __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com