search for: max_pwag

Displaying 5 results from an estimated 5 matches for "max_pwag".

Did you mean: max_pwage
2017 Feb 08
3
Users list and the date the password will expire
...gt; > search parameter. Time conversion methods are taken from here: > > http://meinit.nl/convert-active-directory-lastlogon-time-to-unix-readable-time > > > > > > Ole > > > > > > > > > > -- > > > > #!/bin/sh > > > > max_pwAge=`samba-tool domain passwordsettings show | grep "Maximum > > password age" | tr -dc '0-9'` > > user_list=`wbinfo -u` > > > > basedn="OU=*,DC=*,DC=*,DC=*" > > > > for user in $user_list; do > > > > set_date=`ldbsea...
2017 Feb 08
4
Users list and the date the password will expire
...I wrote one. In case it helps anyone, you find it below. You should only have to fill in the blanks for the the "basedn" search parameter. Time conversion methods are taken from here: http://meinit.nl/convert-active-directory-lastlogon-time-to-unix-readable-time Ole -- #!/bin/sh max_pwAge=`samba-tool domain passwordsettings show | grep "Maximum password age" | tr -dc '0-9'` user_list=`wbinfo -u` basedn="OU=*,DC=*,DC=*,DC=*" for user in $user_list; do set_date=`ldbsearch -H /usr/local/samba/private/sam.ldb -s sub -b $basedn cn=$user | grep...
2017 Feb 08
0
Users list and the date the password will expire
...ould only have to fill in the blanks for the the "basedn" search > parameter. Time conversion methods are taken from here: > http://meinit.nl/convert-active-directory-lastlogon-time-to-unix-readable-time > > > Ole > > > > > -- > > #!/bin/sh > > max_pwAge=`samba-tool domain passwordsettings show | grep "Maximum > password age" | tr -dc '0-9'` > user_list=`wbinfo -u` > > basedn="OU=*,DC=*,DC=*,DC=*" > > for user in $user_list; do > > set_date=`ldbsearch -H /usr/local/samba/private/sam.ldb...
2017 Feb 09
0
Users list and the date the password will expire
...sion methods are taken from here: >>> http://meinit.nl/convert-active-directory-lastlogon-time-to-unix-readable-time >>> >>> >>> Ole >>> >>> >>> >>> >>> -- >>> >>> #!/bin/sh >>> >>> max_pwAge=`samba-tool domain passwordsettings show | grep "Maximum >>> password age" | tr -dc '0-9'` >>> user_list=`wbinfo -u` >>> >>> basedn="OU=*,DC=*,DC=*,DC=*" >>> >>> for user in $user_list; do >>> >>>...
2017 Feb 09
1
Users list and the date the password will expire
On 02/09/2017 11:25 AM, Ole Traupe via samba wrote: > Exactly, and got reminded that I don't have to grep anything but can ask > for specific parameters. Been a while that I used ldbsearch. ;) > So there will be an updated version of your script? :-) Your script is something we could use as well, appreciated! MJ