Browse Source

мелкие изменения, тестирую.

master
Mikhail Grebenkin 6 years ago
parent
commit
3351abcbd7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      UserAd_class.py

+ 2
- 0
UserAd_class.py View File

@ -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


Loading…
Cancel
Save

Powered by TurnKey Linux.