Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set description in Active Directory, and password expire

Status
Not open for further replies.

GeeWond3r

IS-IT--Management
Sep 5, 2003
65
US
Are there any good ldap reference out there, esp. w/ coding ASP? Also w/ ASP.NET?
------------------ asp w/ ldap ----------=----------------
q1) What are the attributes for all of the description of an Active Directory users? The following works fine:
myUserObj.Description = "This is the description"
myUserObj.lastname = "Parker"
myUserObj.displayName = "Spiderman Parker"
But what is the attribute name for putting in e-mail, Office, User Name, Zip, Address, TelephoneS, etc.?
myUserObj.xxxxxxx = "needgoodreference@yahoo.com"

q2) Also, how wud i code for a new user to have initial password of "thispassword", and set it so that he/she can change the password upon 1st logon?

Help?
 
For the first part of your question you will want the following

myUserObj.xxxxx
User Property: xxxxx
############################
First Name: givenname
Initials: middleName
Last Name: sn
Display Name: displayName
Description: description
Office: physicaldeliveryofficename
Telephone Number: telephonenumber
E-Mail: mail
Web page: Street: streetAddress
P.O. Box: postofficebox
City: l
State: st
Zip/Postal Code: postalcode
Country/Region: co
Home: homephone
Pager: pager
Mobile: mobile
Fax: facsimiletelephonenumber
IP Phone: ipphone
Notes: info
Title: title
Department: department
Company: company
Manger: manager

Best of luck ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top