diff options
Diffstat (limited to 'pynslcd/shadow.py')
-rw-r--r-- | pynslcd/shadow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pynslcd/shadow.py b/pynslcd/shadow.py index e8e5f52..d79340b 100644 --- a/pynslcd/shadow.py +++ b/pynslcd/shadow.py @@ -34,7 +34,7 @@ attmap = common.Attributes(uid='uid', shadowExpire='"${shadowExpire:--1}"', shadowFlag='"${shadowFlag:-0}"') filter = '(objectClass=shadowAccount)' -bases = ( 'ou=people,dc=test,dc=tld', ) +bases = ('ou=people,dc=test,dc=tld', ) class Search(common.Search): @@ -67,7 +67,7 @@ class ShadowRequest(common.Request): # first we devide by 1000000000 by stripping the # last 9 digits from the string and going from there */ if attmap['shadowLastChange'] == 'pwdLastSet': - lastchangedate = ( lastchangedate / 864000000000 ) - 134774 + lastchangedate = (lastchangedate / 864000000000) - 134774 # get longs mindays = mk_int(attributes.get('shadowMin', [-1])[0]) maxdays = mk_int(attributes.get('shadowMax', [-1])[0]) |