The server side error is: 0x5 Access is denied.

The server side error is: 0x5 Access is denied.

Although the above listed error is pretty simple and easy to understand. It is giving the clear information about access rights on the LDAP directory partition but its not very much simple to solve. I was trying to create a partition and important Schema in it but was getting this error. I entered the correct password and user name and also the domain but still was not getting through it. Command and output is listed below:

ldifde -i -f “C:\SM_ADLDS_schema.ldf” -s localhost:389 -b administrator test PASSWORD -k -c “CN=Schema,CN=Configuration,CN=test-partition,DC=TEST,DC=com,DC=pk” #schemaNamingContext
Connecting to “localhost:389”
Logging in as “administrator” in domain “test” using SSPI
Importing directory from file “C:\SM_ADLDS_schema.ldf”
Loading entries.
Add error on entry starting on line 14: Insufficient Rights
The server side error is: 0x5 Access is denied.
The extended server error is:
00000005: SecErr: DSID-031521E1, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0
0 entries modified successfully.
An error has occurred in the program
No log files were written.  In order to generate a log file, please
specify the log file path via the -j option.

To solve this problem, please follow the under listed instructions:

Add another user to the LDAP Admins group

reboot the machine on which you are making these changes.

log-in on the machine with the above user

Run command prompt as Administrator.

Enter the listed command with updated user name and password:

ldifde -i -f “C:\SM_ADLDS_schema.ldf” -s localhost:389 -b new-user test PASSWORD -k -c “CN=Schema,CN=Configuration,CN=test-partition,DC=TEST,DC=com,DC=pk” #schemaNamingContext
Connecting to “localhost:389”

This worked for me and I hope this will work for others as well. This post is provided as is and Windows Tech Updates team is not responsible for any loss of information or system corruption due to these instructions. Make sure you have the current backup of the system. better safe than sorry approach must be followed while working with the production systems.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.