Category Active Directory

Active Directory Password Expiration Date

To find out the password expiration date for an Active Directory user you must first determine your domain’s password expiration policy and then when the password was last set. Find your Domain Password Expiration Policy import-module activedirectory Get-ADDefaultDomainPasswordPolicy Property MaxPasswordAge…

Apache Active Directory Authentication howto

Apache Active Directory Authentication howto Modules Needed mod_authz_ldap Install mod_authz_ldap yum install mod_authz_ldap Verify Apache Config has Needed Modules LoadModule auth_basic_module modules LoadModule authz_host_module modules LoadModule authz_user_module modules LoadModule authz_owner_module modules LoadModule authz_groupfile_module modules LoadModule authz_dbm_module modules LoadModule authz_default_module modules…

getdn.bat

To return the distinguished name for all users in an active directory domain create a new file called getdn.bat Content: del c:\activeUsers.txt DSQUERY.exe * -limit 0 -filter “(&(objectCategory=Person)(objectClass=User)(!userAccountControl:1.2.840.113556.1.4.803:=2))” >”c:\activeUsers.txt” C:\WINDOWS\NOTEPAD.EXE c:\activeUsers.txt

Export All Users from OU

How can you export all users from an OU in active directory on server 2003? Create a file called exportusers.vbs and paste in this text: Dim ObjWb Dim zz Set objRoot = GetObject(“LDAP://RootDSE”) strDNC = objRoot.Get(“DefaultNamingContext”) Set objDomain = GetObject(“LDAP://”…