snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Question about LDAP and avoiding sync of a selected ou

Open korio77 opened this issue 9 years ago • 4 comments

Hi again!

I have just updated to the latest version (v4.1.3) and i i wanted to know if there is a way to sync an AD OU but avoiding to sync all the children OU's.

What i mean is, i have an OU lets say its called "Office". Inside it, i have multiple OU's for each department, and one for "old users". It's, there a way to sync the full "Office" OU but avoiding to sync the children "old users" OU?

I have already a query that only sync active users, but in the "old users" OU we still have some active users that i dont want to sync.

Any suggestions?

korio77 avatar Nov 07 '17 08:11 korio77

Hi @korio77 we don't currently support that, but it seems like a reasonable feature request.

snipe avatar Nov 07 '17 19:11 snipe

My only suggestion would be to add a new group that only users in the 'old users' OU are members of and exclude that in your query.

Example: &(objectclass=user)(memberof=cn=staff,cn=users,dc=company,dc=local)(!(memberof=cn=old_staff,cn=users,dc=company,dc=local))(!(userAccountControl:1.2.840.113556.1.4.803:=2))

madd15 avatar Nov 07 '17 23:11 madd15

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jan 20 '18 03:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar May 05 '18 08:05 stale[bot]