Re: Load users from AD into ADAM
- From: "Lee Flight" <lef@xxxxxxxxxxxxxxx>
- Date: Mon, 4 Jul 2005 20:42:27 +0100
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
.
- Follow-Ups:
- Re: Load users from AD into ADAM
- From: S P
- Re: Load users from AD into ADAM
- References:
- Load users from AD into ADAM
- From: S P
- Load users from AD into ADAM
- Prev by Date: Re: MS ADAM: How strategic is a) MS ADAM and b) Authorizaion Manager?
- Next by Date: Re: Load users from AD into ADAM
- Previous by thread: Load users from AD into ADAM
- Next by thread: Re: Load users from AD into ADAM
- Index(es):
Relevant Pages
|