Solved

Adding custom Attributes to ACtive Directory User Properties

Posted on 2006-11-27
9
604 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
 
LVL 9

Expert Comment

by:rpartington
ID: 18018127
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 500 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best practice DHCP migration 7 73
home folder path for users 4 98
Independent domain networks for setup 6 123
How to rollback Windows updates with SCCM? 6 78
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

761 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