rename class ldapsync to lgit, fix typos in README

This commit is contained in:
fram3d 2024-04-08 00:29:39 +02:00
parent 4a9b8ae755
commit 334716f370
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
2 changed files with 5 additions and 5 deletions

View File

@ -9,8 +9,8 @@ Following script copies changes made on 192.168.1.13 LDAP server to the 192.168.
``` ```
import lgit import lgit
server1 = lgit.ldapserver("192.168.1.13", "cn=admin,dc=example,dc=com", "adminpass", "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.ldapserver("192.168.1.21", "ou=bob,ou=Users,dc=example,dc=com", "pasSw0rd", "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) server1.pull(server2)
@ -21,8 +21,8 @@ Following script pulls all user changes from both servers to each other
``` ```
import lgit import lgit
server1 = lgit.ldapserver("192.168.1.13", "cn=admin,dc=example,dc=com", "adminpass", "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.ldapserver("192.168.1.21", "ou=bob,ou=Users,dc=example,dc=com", "pasSw0rd", "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 = lgit.lgit()
lg.sync() lg.sync()

View File

@ -292,7 +292,7 @@ l dc values from base
return str((datetime.utcnow() - datetime(1970,1,1)).days) return str((datetime.utcnow() - datetime(1970,1,1)).days)
class ldapsync(): class lgit():
def __init__(self): def __init__(self):
self.servers = [] self.servers = []