Displaying 5 results from an estimated 5 matches for "expiresstr".
2015 May 06
3
Smba 4, looking for a command to show the password expiration date
...^Maximum password age (days):" | awk '{print
$5}'`
and then, for the user in question, extract the value of pwdLastSet into
LASTSET (perhaps from ldbsearch), and then:
LASTSET=$((LASTSET/10000000))
LASTSET=$((LASTSET-11644473600))
EXPIRES=$((LASTSET+3600*24*LIFETIME))
EXPIRESSTR=`date -d @$EXPIRES`
echo "Password expires $EXPIRESSTR"
-Steve
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
2015 May 06
2
Smba 4, looking for a command to show the password expiration date
Good day all
I am developing a tool in perl to run on my sabma4-DC. This tool must check
the password exp date and send a reminder when quite close. Now in order to
do that, I need a command to extract the expiration date from samba 4.
I have used pdbedit but it looks like the files "password must change" is
not reporting correctlly the exp date, in fact I see:
Unix username:
2015 May 08
2
Smba 4, looking for a command to show the password expiration date
...#39;`
>
> and then, for the user in question, extract the value of pwdLastSet into
> LASTSET (perhaps from ldbsearch), and then:
>
> LASTSET=$((LASTSET/10000000))
> LASTSET=$((LASTSET-11644473600))
> EXPIRES=$((LASTSET+3600*24*LIFETIME))
> EXPIRESSTR=`date -d @$EXPIRES`
> echo "Password expires $EXPIRESSTR"
>
> -Steve
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
>
> --
> To unsubscribe from this list go...
2015 May 08
0
Smba 4, looking for a command to show the password expiration date
...d
age (days):" | awk '{print
$5}'`
and then, for the user in question, extract the value of pwdLastSet into
LASTSET (perhaps from ldbsearch), and then:
LASTSET=$((LASTSET/10000000))
LASTSET=$((LASTSET-11644473600))
EXPIRES=$((LASTSET+3600*24*LIFETIME))
EXPIRESSTR=`date -d @$EXPIRES`
echo "Password expires $EXPIRESSTR"
-Steve
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:...
2015 May 08
0
Smba 4, looking for a command to show the password expiration date
...ser in question, extract the value of pwdLastSet into
> LASTSET (perhaps from ldbsearch), and then:
>
> LASTSET=$
((LASTSET/10000000))
> LASTSET=$
((LASTSET-11644473600))
> EXPIRES=$((LASTSET
+3600*24*LIFETIME))
> EXPIRESSTR=`date -d
@$EXPIRES`
> echo "Password expires
$EXPIRESSTR"
>
> -Steve
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
>
> --
> To unsubscribe from this...