docs/schema.ActiveDirectory missing "" for #schemaNamingContext
DeclerckLouis opened this issue · 1 comments
DeclerckLouis commented
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