|
|
@ -25,7 +25,9 @@ class UserAd: |
|
|
|
self.exists = self.chek_if_exists() |
|
|
|
if not self.exists: |
|
|
|
self.add() |
|
|
|
print self.exists |
|
|
|
self.memberOf = self.check_memberof() |
|
|
|
print self.memberOf |
|
|
|
|
|
|
|
def chek_if_exists(self): |
|
|
|
expression = "(&(objectCategory=person)(objectClass=user)(sAMAccountName=%s))" % self.usrName |
|
|
|