Re: Load users from AD into ADAM

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



Hi

inline below...

"S P" <SP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9E562E8E-109B-4C1E-BB9E-3126D2588ADB@xxxxxxxxxxxxxxxx

> 1) How do I create a top level container under ADAM,
> DC=dc1,DC=dc2,DC=CO,DC=UK?
>
> I tried using ldp.exe but it gives an error saying that "RDN does not
> exists...etc"

If you are following the example in
ADAM Help
How To...
Manage Schemas and Directroy Partitions
Add an application directory partition

then at step 4. you need objectClass to be domainDNS for a partition
that starts DC=

>From the ADAM Tools Command Prompt dsmgmt.exe gives you an
alternative way to create partitions:

--
C:\WINDOWS\ADAM> [dsmgmt]
dsmgmt: [partition management]

partition management: [connections]

server connections: [connect to server localhost:50005]
Binding to localhost:50005 ...
Connected to localhost:50005 using credentials of locally logged on user.
server connections: [quit]

partition management: [create nc DC=dc1,DC=dc2,DC=CO,DC=UK domainDNS NULL]

adding object DC=dc1,DC=dc2,DC=CO,DC=UK

--

where your input is in []; that's running on the ADAM server (localhost)
with ADAM listening on port 50005 using an ADAM administrator account.


> Or do I need to create a top level container like O=my,C=UK only first.

No

> 2) Also, to load the users from test users, what all information should
> the
> .csv file contain. At present it contains just sn, sAMAccountName, and
> mail.
> I need to use just these 3 attributes only.

The ADAM user object created by importing MS-User.ldf has the sn and mail
attributes defined. If you really need the other attibute to be
sAMAccountName
you will need to add an attribute to the user object created by the
MS-User.ldf
import. An LDIF Something like:

# Attribute: sAMAccountName
dn: cn=SAM-Account-Name,cn=Schema,cn=Configuration,dc=X
changetype: ntdsschemaadd
objectClass: attributeSchema
attributeId: 1.2.840.113556.1.4.221
ldapDisplayName: sAMAccountName
attributeSyntax: 2.5.5.12
adminDescription: SAM-Account-Name
adminDisplayName: SAM-Account-Name
# schemaIDGUID: 3e0abfd0-126a-11d0-a060-00aa006c33ed
schemaIDGUID:: 0L8KPmoS0BGgYACqAGwz7Q==
# attributeSecurityGUID: General Information
attributeSecurityGUID:: Qi+6WaJ50BGQIADAT8LTzw==
oMSyntax: 64
searchFlags: 13
systemFlags: 18
isSingleValued: TRUE
systemOnly: FALSE
rangeLower: 0
rangeUpper: 256

DN:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-

dn: CN=User,CN=Schema,CN=Configuration,DC=X
changetype: Modify
add: mayContain
mayContain: sAMAccountName
-

dn:
changetype: Modify
add: schemaUpdateNow
schemaUpdateNow: 1
-

You should then be able to import a CSV file like

objectClass,dn,sn,mail,sAMAccountName
user,"cn=fred,DC=dc1,DC=dc2,DC=CO,DC=UK",Smith,"fredsmi@xxxxxxxxx",freds

using csvde.exe


Lee Flight


.



Relevant Pages

  • Re: Load users from AD into ADAM
    ... >> 1) How do I create a top level container under ADAM, ... At present it contains just sn, sAMAccountName, and ... > changetype: ntdsschemaadd ... > add: schemaUpdateNow ...
    (microsoft.public.windows.server.active_directory)
  • Re: Load users from AD into ADAM
    ... >>> 1) How do I create a top level container under ADAM, ... At present it contains just sn, sAMAccountName, and ... >> changetype: ntdsschemaadd ... >> add: schemaUpdateNow ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM - AD_Schema load fails with error
    ... I uninstalled the ADAM instance I had and installed a new one with the ... Saved configuration file. ... I also tried the above with a partition called ... "Lee Flight" wrote: ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM question
    ... I have tried to create additional partitions using ldp as instructed in the ... the DN listed for my new partition in the ... > I would not install another ADAM instance to get another partition. ... > installation and import it into you ADAM installation using the LDIDFDE ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM DSML Samples: Which partition needs to be created to run the DSML samples included with ADA
    ... Developers of Advanced Business Collaboration Solutions for Microsoft SharePoint, Microsoft Live Communications Server and Groove Workspace Portal and Content Migration Solution Specialists: ... > Which partition needs to be created to run the DSML samples included with> ADAM? ... > SharePoint Migration Knowledge Center: ...
    (microsoft.public.windows.server.active_directory)