Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Think about Loose Coupling
 
PerlMonks  

Re: need create date of win32 domain user id

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.