| 12 August 2009
| Article Index |
|---|
| AD User Editor |
| Setup |
| Configuration |
| Sources, Evolutions and Modifications |
| All Pages |
Configuring of the WebPart
AD Controller(s)
You can click the three dots to view it better (and maybe copy-paste it to your favourite text editor).
This is for the webpart to understand which domain controller it should connect in order to edit an user.
Here is an example configuration for 2 domains:
<domains> <domain name="PESSAC" path="LDAP://srvpscinfo.pessac.mydomain.com/DC=pessac,DC=mydomain,DC=com" usr="xxxx" pwd="yyyy"> <domain name="VENISSIEUX" path="LDAP://srvvnxinfo.venissieux.mydomain.com/DC=venissieux,DC=mydomain,DC=com" usr="xxxx" pwd="yyyy"> </domains>
There are 4 parameters:
- name: It is the Netbios domain name (the netbios name is what you type before your login. eg: if you type VENISSIEUX\nomine, then the netbios name is VENISSIEUX)
- path: It's the path to connect to the corresponding Active Directory controller (eg: "LDAP://adserver1.domain.com/DC=domain,DC=com").
- usr: Username of an account that has Read/Write access to this Active Directory controller.
- pwd: Password of this account.
AD Properties
Here you can configure all the profile properties that you want to appera in the edit form.
Here is an example configuration:
<properties> <property adname="displayName" name="Full Name" type="textbox" values="" /> <property adname="sn" name="Last Name" type="textbox" values="" /> <property adname="givenName" name="First Name" type="textbox" values="" /> <property adname="manager" name="Manager" type="person" values="" /> <property adname="assistant" name="Assistant" type="person" values="" /> <property adname="department" name="Service" type="listbox" values="IT;Human Resources;Bio;Security" /> <property adname="title" name="Title" type="textbox" values="" /> <property adname="employeeType" name="Employee Type" type="dropdown" values="Technician,tech;Manager,mgr;Director,dir" /> <property adname="telephoneNumber" name="Telephone number" type="textbox" values="" /> <property adname="mobile" name="Mobile" type="textbox" values="" /> <property adname="facsimileTelephoneNumber" name="Fax" type="textbox" values="" /> <property adname="l" name="Town" type="dropdown" values="New-York;Washington" /> <property adname="physicalDeliveryOfficeName" name="Office" type="textbox" values="" /> <property adname="company" name="Company" type="textbox" values="" /> <property adname="accountExpires" name="Departure Date" type="date" values="" /> </properties>
A "property" field has 4 different properties:
- adname: The LDAP name of the property you want to modify.
(You can find a list of all LDAP property names on www.imibo.com) - name: The name you want to display in the edit form
- type: Which type you want the field to be:
- textbox: Simple text-box. Comon way of editing things.
- dropdown: Dropdown list with a choice of predefined values.
- listbox: If a dropdown list would be too long, this is the best solution. It works as "dropdown".
- person: People Picker to select any people that SharePoint will find in Active Directory.
- date: Date Picker with calendar.
- values: The predefined values in ListBox and DropDownList. Can be defined two ways:
- Values separated by semicolons(;)
- OR Pair of displayed_title/inserted_value. Each item separated by semicolon (;) and each pair divided by a comma (,)
I tried to be as clear as possible. Don't hesitate to put your question in comments if your not sure...
Check the box to transform the WebPart into "self-service".






Comments
Can we make readonly field,and can we make mandatory field ?
If yes, please tell its very need in my project.
regards
Mansoor
It could be a problem of credentials.
Please check that the login you put in the xml config is like this: "DOMAIN\username "
I have sucessfully configured the AD User Editor Webpart, however if I try to get an account from the PersonPicker and then edit it it launches the following error message:
System.DirectoryServic es.DirectoryServic esCOMException (0x8007202B): A referral was returned from the server. at System.DirectoryServic es.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServic es.DirectoryEntry.Bind() at System.DirectoryServic es.DirectoryEntry.get_AdsObject() at System.DirectoryServic es.DirectorySearch er.FindAll(Boolean findMoreThanOne ) at System.DirectoryServic es.DirectorySearch er.FindOne() at NomineSharePoin tTools.ADUserEditor.findFromAccount Name(String Name) at NomineSharePoin tTools.ADUserEditor.selectUser()
Any suggestion or possible troubleshooting for solving this issue would be highly appreciated!!
BTW, Excellent Webpart, I´m really excited to try it on, please help!!
The issue is related to the xml config in the webpart:
check here for more info: http://nominesptools.codeplex.com/Thread/View.aspx?ThreadId=69492
I have installed it successfully and added it to a MOSS page, but I get an error.
I seem to get the same error whether I enter my DC creds or not.
The error is
"System.Collections.Generic.KeyNotFoundExce ption: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoun dExce ption() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at NomineSharePoin tTools.ADUserEditor.findFromAccount Name(String Name) at NomineSharePoin tTools.ADUserEditor.selectUser"
Fairly noob at this so it's probably something obvious I am missing. I would appreciate any help you can give me as the WebPart is exactly what I am looking for.
Thanks.
Steev.
It's pretty simple to do it in WebApp, I think can be done in WebPart.
RSS feed for comments to this post.