Re: Help Extending Schema

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Unfortunately, modifying ADUC is pretty hard without the right programmer
skills. It is generally only done by ISVs and is rarely done by IT shops.

What most people do is write a web app to do this as it is easier to code
and easier to deploy as well (you need to install your ADUC mod dll on every
machine that you want to have it on and then must deal with bugs,
versioning, etc.).

A future version of ADUC is intended to be much easier to modify, but you
won't see that for a few years.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"PRSmith59" <PRSmith59@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1AC30D5E-CE66-4CB0-86F5-ED9A3713166F@xxxxxxxxxxxxxxxx
Hi Thanks for the reply

I can populate the field just fine. We are dumping the info into AD via
Oracle and our Oracle DBA was able to callout and populate the field. I
can
see the data if I do a find in ADUC and select the columns to display,
selecting employeeID. However I can't seem to call the info via dsquery
and I
also want to modify the ADUC so that when our support people open a user's
property box the field is displayed and editable

"M W" wrote:

Hello PRSmith59,

I am not sure if you are asking for instructions on populating the
attribute
or retrieving it. Yes you can script this using vbscript if required.
Else
you could use GUI tools like admodify
(http://www.gotdotnet.com/workspaces/releases/viewuploads.aspx?id=F5CBBFA9-E46B-4A7A-8ED8-3E44523F32E2)
or even command line tools such as dsmod and admod (http://joeware.net).

ADUC doesnt offer the ability to view all attributes (including those
that
can be configured for a user object). But there are means of extending
this
programmatically. ASsuming you are happy to populate and retrieve using
command
line tools, then native dsmod, dsquery should be sufficient.

you could use dsquery to set employeeid values like so.

dsmod user cn=user1,ou=myuserou,dc=domain,dc=local -empid ABC123XXX

Obviously replace the FQDN for the user and the ABC123XXX values
accordingly.
If you want to retrieve then do something like this

dsquery * cn=user1,ou=myuserou,dc=domain,dc=local -scope base -attr
employeeID

If you need to do batch updates then this gets a little more complicated.
This requires you have an input file of all the users and the relevant
employee
ids. The complexity occurs depending on whether your users can have
varyng
FQDNs based on the OU they are in. If they are all in one OU or
container,
then things are simpler.

Post if you need further help. I hope this is a good starting point

HTH

M@


Hi - We're trying to add the user's Employee ID number into AD. I see
there are already several attributes within the schema (employeeID &
employeeNumber) but I can't seem to load them with data and more
importantly add the fields to ADUC so they can be seen. I know someone
else must've done this already and I'm not a strong script writer by
any means so hoping someone can help.

I've been researching it and the Platform SDK eludes to it but also
says it requires C++ which really threw me as any script experience I
have is in VB. When i do a dsquery on the field (dsquery user -samid
username | dsget user -employeeID) I get the error employeeID is an
unknown parameter

Mucho Gracias in advance






.



Relevant Pages

  • Re: Help Extending Schema
    ... Oracle and our Oracle DBA was able to callout and populate the field. ... However I can't seem to call the info via dsquery and I ... also want to modify the ADUC so that when our support people open a user's ... you could use dsquery to set employeeid values like so. ...
    (microsoft.public.windows.server.active_directory)
  • Re: How to make AD Schema attributes visable in Users & Computers snap-in
    ... Users and Computers (ADUC), however it requires a good knowledge of C++ ... Another possibility is to extend the context menu to start your own app ... to show and administer the custom properties. ... IIRC Hyena also allows you to change the employeeid. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Making EmployeeNumber field enterable in Active Directory User
    ... User objects have an employeeID attribute, but it does not appear in ADUC. ... an article about customizing ADUC is linked here: ... Users and Comptuers so that when the HelpDesk staff create the new user ...
    (microsoft.public.windows.server.active_directory)
  • Re: See hidden attributes in ADUC
    ... Tim Kalligonis wrote:> I need to add the employeeID and employeeType to the ADUC screens. ... I> am connected to the schema manager server. ...
    (microsoft.public.windows.server.active_directory)
  • Re: See hidden attributes in ADUC
    ... Tim Kalligonis wrote:> I need to add the employeeID and employeeType to the ADUC screens. ... I> am connected to the schema manager server. ...
    (microsoft.public.win2000.active_directory)