Skip to content

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

@DeclerckLouis

Description

@DeclerckLouis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions