Issue 8944 - Support Microsoft AD DirSync as a consumer
Summary: Support Microsoft AD DirSync as a consumer
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.5.4
Hardware: All All
: --- normal
Target Milestone: 2.5.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 00:37 UTC by Howard Chu
Modified: 2020-10-14 21:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Howard Chu 2018-12-18 00:37:23 UTC
Full_Name: Howard Chu
Version: 2.5
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (80.233.39.182)
Submitted by: hyc


Code in master is now available for operating slapd as a replication consumer
against Microsoft ActiveDirectory using their DirSync protocol. Note that no
attempt has been
made to work with anything other than user and group entries.

A sample config, based on the test017 syncrepl consumer config:

####
include         ./schema/core.schema
include         ./schema/cosine.schema
include         ./schema/inetorgperson.schema
include         ./schema/nis.schema
include		./schema/msuser.schema

attributeoptions        range=

database        mdb
suffix          "dc=ldapsync,dc=local"
rootdn          "cn=Replica,dc=ldapsync,dc=local"
rootpw          secret
directory       ./testrun/db.2.a
index           objectClass     eq
index           cn,sn,uid       pres,eq,sub
index           entryUUID,entryCSN      eq

syncrepl        rid=1
                provider=ldap://ldapsync/
                binddn="cn=Administrator,cn=users,dc=ldapsync,dc=local"
                bindmethod=simple
                credentials=MSAD-secret
                searchbase="dc=ldapsync,dc=local"
                filter="(|(objectClass=user)(objectclass=group))"
                schemachecking=off
                scope=sub
                type=dirSync
                interval=00:00:00:03
updateref       ldap://ldapsync/


database        monitor
####

Note that DirSync doesn't have a persist mode, it only works by
refreshOnly-style polling. DirSync support for Modifications is quite braindead;
the protocol has no way to indicate deletion of single-valued attributes. This
has been left as-is for now, possibly some workarounds can be added for that
later.
Comment 1 OpenLDAP project 2018-12-18 00:37:41 UTC
in master
Comment 2 Howard Chu 2018-12-18 00:37:41 UTC
changed notes
changed state Open to Test
moved from Incoming to Development