Solved

Adding custom Attributes to ACtive Directory User Properties

Posted on 2006-11-27
9
565 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
9 Comments
 
LVL 4

Expert Comment

by:jcdesign4u
Comment Utility
I don't believe that's possible.
0
 
LVL 14

Expert Comment

by:inbarasan
Comment Utility
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
 
LVL 9

Expert Comment

by:rpartington
Comment Utility
0
 
LVL 10

Expert Comment

by:ryangorman
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 1

Author Comment

by:Mohd-Anwaruddin
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I mean would there be any effect on Microsoft Exchange 2003 if we did the above mentioned changed
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now