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 = []