Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Adding custom Attributes to ACtive Directory User Properties

Posted on 2006-11-27
9
Medium Priority
?
622 Views
Last Modified: 2009-01-16
Hello all,

Could any one throw some light on how to add additional fields to a user name property box. For Example In the organization tab i would like to add one more custom field called EMP NO. It's windows 2003 based Active Directory Service.

Regards
0
Comment
Question by:Mohd-Anwaruddin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 4

Expert Comment

by:jcdesign4u
ID: 18017737
I don't believe that's possible.
0
 
LVL 14

Expert Comment

by:inbarasan
ID: 18017996
If you are looking at adding Employee id then that field is already in AD Schema.
To enable it, kindly follow the article
http://www.softheap.com/security/active-directory.html

It is possible to add the custom attributes. May be some more experts will be help you on that
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 10

Expert Comment

by:ryangorman
ID: 18018249
To explicitly answer your question - you cannot [3] edit the GUI to display new attribute. However, as inbarasan suggested, you can work-around the problem by adding context menus to the user object. These context menus launch VBS scripts that can display and edit whatever you desire.

The Windows 2003 schema [1] already has attributes  for employeeID, employeeNumber and employeeType. You do not need to edit the schema to 'activate' them. The second part of inbarasan's article [2] forgets to explicitly say that you need to edit the adminContextMenu attribute (normally this is the first attribute in the list so no problem really).


[1] http://www.jsifaq.com/SF/Tips/Tip.aspx?id=9642
[2] http://www.softheap.com/security/active-directory.html
[3] I have heard that Microsoft may have provided a method for C++ programmers.


0
 
LVL 1

Author Comment

by:Mohd-Anwaruddin
ID: 18019235
Dear All,

When i done the things what mentioned in the article by ryangorman i get the following error

Windows Script Host
Line 7
Char 5
Compilation Error
Error  Expected Statement
Code 800A0400
Source Microsoft VB Script Compilation Error

Please let me know what do i have to do.

I just copied the script and pasted it still it did not work out


Thanks
0
 
LVL 10

Expert Comment

by:ryangorman
ID: 18019272
Inbarasan  deserves the credit for any script from http://www.softheap.com/security/active-directory.html.

You did realise that there were TWO scripts, one called eid.vbs and another called enum.vbs. Both scripts start with "Dim oVar" and end with "WScript.Quit".

0
 
LVL 10

Accepted Solution

by:
ryangorman earned 1500 total points
ID: 18019302
Word wrapping has caused the problems. I have placed line numbers at the start of each proper line.

1 Dim oVar
2 Dim oUsr
3 Dim tmp
4 Set oVar = Wscript.Arguments
5 Set oUsr = GetObject(oVar(0))
6 tmp = InputBox("The Employee ID of the user is: " & oUsr.employeeID & vbCRLF & vbCRLF & "If you would like enter a new number or modify the existing number, enter the new number in the textbox below")
7 if tmp <> "" then oUsr.Put "employeeID",tmp
8 oUsr.SetInfo
9 Set oUsr = Nothing
10 WScript.Quit


1 Dim oVar
2 Dim oUsr
3 Dim tmp
4 Set oVar = Wscript.Arguments
5 Set oUsr = GetObject(oVar(0))
6 tmp = InputBox("The Employee Number for this user is: " & oUsr.EmployeeNumber & vbCRLF & vbCRLF & "If you would like enter a new number or modify the existing number, enter the new number in the textbox below")
7 if tmp <> "" then oUsr.Put "employeeNumber",tmp
8 oUsr.SetInfo
9 Set oUsr = Nothing
10 WScript.Quit
0
 
LVL 1

Author Comment

by:Mohd-Anwaruddin
ID: 18019854
I Was wondering if there would be any on exchange if the above mentioned is done????


Though thanks every one

0
 
LVL 1

Author Comment

by:Mohd-Anwaruddin
ID: 18019859
I mean would there be any effect on Microsoft Exchange 2003 if we did the above mentioned changed
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question