Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing SAP ldf configuration file

Status
Not open for further replies.

inkydvd

Technical User
Nov 5, 2003
21
CH
Hi all

I have been given the task of importing a .ldf file into my existing Active Directory. The command in order to do this was given to me by SAP

Version 1
#
# Usage: ldifde -i -s <servername> -f <filename> -k -v
# -c &quot;ROOT_SCHEMA&quot; <schemacontext>
# Example: ldifde -i -s ads1 -f test.ldf -k -v
# -c &quot;ROOT_SCHEMA&quot; &quot;cn=Schema, cn=Configuration, dc=company, dc=de&quot;
#


The above works but I recieve the following error


D:\>ldifde -i -s riagsrv0 -f LDIF.ldf -k -v -c &quot;ROOT_SCHEMA&quot; &quot;cn=Schema, cn=conf
iguration, dc=company, dc=ch
Connecting to &quot;riagsrv0&quot;
Logging in as current user using SSPI
Importing directory from file &quot;LDIF.ldf&quot;
Loading entries
1: cn=roomNumber, cn=Schema, cn=configuration, dc=company, dc=ch

Add error on line 28: Referral
The server side error is &quot;A referral was returned from the server.&quot;
0 entries modified successfully.
An error has occurred in the program


I believe the error lies here:

1: cn=roomNumber, cn=Schema, cn=configuration, dc=company, dc=ch

But I only can fill in the details for dc=company dc=ch

I would really apreciate any info regarding my problem.

Thank you
 
You need to import the file to the dc that functions as the schema master. AD allows only one server in a domain to be the schema master (it looks like the one you are trying isn't it). Let me know if you need help determining which server is the schema master ...
 
Thanks for your input

There is only the one domain controller &quot;Riagsrv0&quot; which is the schema master.

Here is the contents of my log file:

Connecting to &quot;riagsrv0&quot;
Logging in as current user using SSPI
Importing directory from file &quot;LDIF.ldf&quot;
Loading entries
1: cn=roomNumber, cn=Schema, cn=configuration, dc=Resource, dc=ch
Entry DN: cn=roomNumber, cn=Schema, cn=configuration, dc=Resource, dc=ch
change: add
Attribute 0) attributeID:0.9.2342.19200300.100.1.6
Attribute 1) attributeSyntax:2.5.5.12
Attribute 2) cn:roomNumber
Attribute 3) isSingleValued:TRUE
Attribute 4) lDAPDisplayName:roomNumber
Attribute 5) objectCategory:cn=Attribute-Schema, cn=Schema, cn=configuration, dc=Resource, dc=ch
Attribute 6) objectClass:attributeSchema
Attribute 7) oMSyntax:64

Add error on line 28: Referral
The server side error is &quot;A referral was returned from the server.&quot;
0 entries modified successfully.
An error has occurred in the program


Thanks

 
It is possible that you don't have permission to modify the configuration entries with your currently logged in user - as this requires the schema admin to make the modifications. The error might be giving you a referral because it can't locate that container with the credentials supplied through the command line ....

Just a thought ...
 
no, i am logged in as Domain admin...

Any more thoughts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top