Skip to content

Commit

Permalink
Remove old position of code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvanes committed Dec 6, 2023
1 parent b8e0c01 commit faf65ca
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions plsc_flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@ def create(src, dst):

co_dn = f"dc=flat,dc={service},{dst.basedn}"

# Create flat dn if it doesn't exist
flat_dns = dst.rfind(f"dc={service}", "(&(objectClass=dcObject)(dc=flat))")
if len(flat_dns) == 0:
flat_dn = f"dc=flat,dc={service},{dst.basedn}"
flat_entry = {'objectClass': ['dcObject', 'organizationalUnit'], 'dc': ['flat'], 'ou': ['flat']}
dst.add(flat_dn, flat_entry)
for ou in ['Groups', 'People']:
ou_dn = 'ou=' + ou + ',' + flat_dn
ou_entry = {'objectClass': ['top', 'organizationalUnit'], 'ou': [ou]}
dst.add(ou_dn, ou_entry)

logging.debug(" - People")
src_dns = src.rfind(f"ou=People,o={co_id},dc=ordered,dc={service}", '(ObjectClass=person)')

Expand Down

0 comments on commit faf65ca

Please sign in to comment.