Re: Problem in Extending the schema for ADAM
- From: srihari <srihari@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Dec 2006 22:47:00 -0800
Hi Lee, Thanks for your reply,
I added to auxiliaryClass info my ldf file given below
# Attribute: slb-securityFlag
dn: cn=slb-securityFlag,cn=Schema,cn=Configuration,dc=X
changetype: ntdsschemaadd
objectClass: attributeSchema
attributeId: 1.3.6.1.4.1.1489.3.1.5
ldapDisplayName: slb-securityFlag
attributeSyntax: 2.5.5.9
adminDisplayName: slb-securityFlag
# schemaIDGUID: cb2d23e3-0903-b045-570a-44a02c2e721b
schemaIDGUID:: 4yMtywMJRbBXCkSgLC5yGw==
oMSyntax: 2
isSingleValued: TRUE
systemOnly: FALSE
dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
# Class: slb-cardUserInfo
dn: cn=slb-cardUserInfo,cn=Schema,cn=Configuration,dc=X
changetype: ntdsschemaadd
objectClass: classSchema
governsID: 1.3.6.1.4.1.1489.3.2.2
ldapDisplayName: slb-cardUserInfo
adminDisplayName: slb-cardUserInfo
# schemaIDGUID: ae7c88dc-03ee-a04b-4d08-b42045176dfa
schemaIDGUID:: 3Ih8ru4DS6BNCLQgRRdt+g==
objectClassCategory: 3
# subclassOf: top
subclassOf: 2.5.6.0
# rdnAttId: cn
rdnAttId: 2.5.4.3
# mayContain: slb-securityFlag
mayContain: 1.3.6.1.4.1.1489.3.1.5
dn: changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
dn: cn=User,cn=Schema,cn=Configuration,dc=X
changetype: modify
add: auxiliaryClass
auxiliaryClass: slb-cardUserInfo
-
dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
While importing i got the following error message
Connecting to "localhost:389"
Loading in as current user using SSPI
Importing directory from file "Odd.LDF"
Loading entries...
There is a syntax error in the input file
Failed on line no 41. The last token starts with '1'
3 entries modified successfully.
An error has occured in the program.
Thanks&Regards
srihari
"Lee Flight" wrote:
Hi
dn: CN=User,CN=Schema,CN=Configuration,DC=X
changetype: Modify
add: auxiliaryClass
auxiliaryClass: slb-cardUserInfo
-
dn:
changetype: Modify
add: schemaUpdateNow
schemaUpdateNow: 1
-.
Lee Flight
"srihari" <srihari@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D456E6AF-2F10-4204-96D6-86D3D239D209@xxxxxxxxxxxxxxxx
Thans Kaplan,
I did not add it. Could you tell me how to add my aux class as a static
aux
class of the user class in ADAM.
Thanks&Regards
Srihari.
"Joe Kaplan" wrote:
Did you add your aux class as a static aux class of the user class in
ADAM?
I see the aux class definition itself but not that modification...
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
--
"srihari" <srihari@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BAF829D0-5A77-481D-8693-1A5AF79B243A@xxxxxxxxxxxxxxxx
I synchronized the data from AD to ADAM through Synchronization tool. It
is
working fine. Then I extended the schema by adding following new class
and
attribute
# ==================================================================
#
# This file should be imported with the following command:
# ldifde -i -u -f Schma1.ldf -s server:port -b username domain
password
-j . -c "cn=Configuration,dc=X" #configurationNamingContext
# LDIFDE.EXE from AD/AM V1.0 or above must be used.
# This LDIF file should be imported into AD or AD/AM. It may not work
for
other directories.
#
# ==================================================================
# ==================================================================
# Attributes
# ==================================================================
# Attribute: slb-securityFlag
dn: cn=slb-securityFlag,cn=Schema,cn=Configuration,dc=X
changetype: ntdsschemaadd
objectClass: attributeSchema
attributeId: 1.3.6.1.4.1.1489.3.1.5
ldapDisplayName: slb-securityFlag
attributeSyntax: 2.5.5.9
adminDisplayName: slb-securityFlag
# schemaIDGUID: cb2d23e3-0903-b045-570a-44a02c2e721b
schemaIDGUID:: 4yMtywMJRbBXCkSgLC5yGw==
oMSyntax: 2
isSingleValued: TRUE
systemOnly: FALSE
dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
# ==================================================================
# Classes
# ==================================================================
# Class: slb-cardUserInfo
dn: cn=slb-cardUserInfo,cn=Schema,cn=Configuration,dc=X
changetype: ntdsschemaadd
objectClass: classSchema
governsID: 1.3.6.1.4.1.1489.3.2.2
ldapDisplayName: slb-cardUserInfo
adminDisplayName: slb-cardUserInfo
# schemaIDGUID: ae7c88dc-03ee-a04b-4d08-b42045176dfa
schemaIDGUID:: 3Ih8ru4DS6BNCLQgRRdt+g==
objectClassCategory: 3
# subclassOf: top
subclassOf: 2.5.6.0
# rdnAttId: cn
rdnAttId: 2.5.4.3
# mayContain: slb-securityFlag
mayContain: 1.3.6.1.4.1.1489.3.1.5
dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
# ==================================================================
# Updating present elements
# ==================================================================
I imported this file to ADAM. I can see the created Class and attribute
thru
both in ADAM schema and ADAMADSIEdit.
But when i select the properties of particular user(The user data
synchronized from AD) in ADAMADSIEdit, not able to see the newly
created
attribute(in our case slb-securityFlag).
And also tried to set the value to the flag through .net appln, While
setting the value to the flag, it is throwing the following error
message.
"The requested operation did not satisfy one or more constraints
associated
with the class of the object."
I suspecting there is some problem in generated ldf file.
Please help me if any body knows
Thank&Regards
srihari
- Follow-Ups:
- Re: Problem in Extending the schema for ADAM
- From: Lee Flight
- Re: Problem in Extending the schema for ADAM
- From: srihari
- Re: Problem in Extending the schema for ADAM
- References:
- Problem in Extending the schema for ADAM
- From: srihari
- Re: Problem in Extending the schema for ADAM
- From: Joe Kaplan
- Re: Problem in Extending the schema for ADAM
- From: srihari
- Re: Problem in Extending the schema for ADAM
- From: Lee Flight
- Problem in Extending the schema for ADAM
- Prev by Date: Re: 2000 Upgrade
- Next by Date: RE: USERENV error - Group Policy
- Previous by thread: Re: Problem in Extending the schema for ADAM
- Next by thread: Re: Problem in Extending the schema for ADAM
- Index(es):
Relevant Pages
|