Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: need create date of win32 domain user id

by idsfa (Vicar)
on Feb 05, 2004 at 16:51 UTC ( [id://326801]=note: print w/replies, xml ) Need Help??


in reply to need create date of win32 domain user id

While this code doesn't use the Win32 specific API, that could be considered an advantage:

Updated: In case people were not aware, a Windows Domain Controller also acts as an LDAP server.

use Net::LDAP; $ldap = Net::LDAP->new( 'domain.controller' ); # bind to a directory with dn and password # ActiveDirectory does not allow anonymous binds $mesg = $ldap->bind( 'cn=a_valid_user,o=mydomain', password => 'secret' ); $mesg = $ldap->search( # perform a search base => "o=mydomain", filter => "(sAMAccountName=user_name)", attrs => [ "whenCreated" ] ); Net::LDAP::LDIF->new( \*STDOUT,"w" )->write( $mesg->entries );

If anyone needs me I'll be in the Angry Dome.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://326801]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2025-03-21 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (63 votes). Check out past polls.