Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/schema.ActiveDirectory missing "" for #schemaNamingContext #376

Closed
DeclerckLouis opened this issue May 16, 2024 · 1 comment
Closed

Comments

@DeclerckLouis
Copy link

I was trying to get the schema.ActiveDirectory to work on a freshly installed and promoted windows server 2022.
According to the schema i have to do the following:

#
# Active Directory Schema for sudo configuration (sudoers)
#
# To extend your Active Directory schema, run one of the following command
# on your Windows DC (default port - Active Directory):
# 
#  ldifde -i -f schema.ActiveDirectory -c "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext

docs/schema.ActiveDirectory

However, upon trying this i get:

PS C:\Users\Administrator.DC01.001> ldifde -i -f schema.ActiveDirectory -c "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext 
Invalid Parameter: Requires 'From DN' and 'To DN'
LDIF Directory Exchange
General Parameters                                                                                                      
================== 

Fix

By changing ##schemaNamingContext to "##schemaNamingContext" it runs without issues

PS C:\Users\Administrator.DC01.001> ldifde -i -f schema.ActiveDirectory -c "CN=Schema,CN=Configuration,DC=X" "#schemaNamingContext"
Connecting to "DC01.ad.domain.com"
Logging in as current user using SSPI
Importing directory from file "schema.ActiveDirectory"
Loading entries.............
12 entries modified successfully.
The command has completed successfully
millert added a commit that referenced this issue May 18, 2024
@millert
Copy link
Collaborator

millert commented May 18, 2024

Fixed by ee56176, thanks.

@millert millert closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants