From 334716f37045b2f0fbc8880db139ba8a9bdd0082 Mon Sep 17 00:00:00 2001 From: fram3d Date: Mon, 8 Apr 2024 00:29:39 +0200 Subject: [PATCH] rename class ldapsync to lgit, fix typos in README --- README.md | 8 ++++---- lgit.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0c328f0..a1d82d5 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ Following script copies changes made on 192.168.1.13 LDAP server to the 192.168. ``` import lgit -server1 = lgit.ldapserver("192.168.1.13", "cn=admin,dc=example,dc=com", "adminpass", "ou=Users,dc=example,dc=com") -server2 = lgit.ldapserver("192.168.1.21", "ou=bob,ou=Users,dc=example,dc=com", "pasSw0rd", "ou=Users,dc=example,dc=com") +server1 = lgit.logserver("192.168.1.13", "cn=admin,dc=example,dc=com", "adminpass", "ou=Users,dc=example,dc=com") +server2 = lgit.logserver("192.168.1.21", "ou=bob,ou=Users,dc=example,dc=com", "pasSw0rd", "ou=Users,dc=example,dc=com") server1.pull(server2) @@ -21,8 +21,8 @@ Following script pulls all user changes from both servers to each other ``` import lgit -server1 = lgit.ldapserver("192.168.1.13", "cn=admin,dc=example,dc=com", "adminpass", "ou=Users,dc=example,dc=com") -server2 = lgit.ldapserver("192.168.1.21", "ou=bob,ou=Users,dc=example,dc=com", "pasSw0rd", "ou=Users,dc=example,dc=com") +server1 = lgit.logserver("192.168.1.13", "cn=admin,dc=example,dc=com", "adminpass", "ou=Users,dc=example,dc=com") +server2 = lgit.logserver("192.168.1.21", "ou=bob,ou=Users,dc=example,dc=com", "pasSw0rd", "ou=Users,dc=example,dc=com") lg = lgit.lgit() lg.sync() diff --git a/lgit.py b/lgit.py index 48bced6..90bb3d2 100755 --- a/lgit.py +++ b/lgit.py @@ -292,7 +292,7 @@ l dc values from base return str((datetime.utcnow() - datetime(1970,1,1)).days) -class ldapsync(): +class lgit(): def __init__(self): self.servers = []