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