Displaying 7 results from an estimated 7 matches for "lastset".
Did you mean:
fastset
2015 May 06
3
Smba 4, looking for a command to show the password expiration date
...ration date from samba 4.
Extract the value of the password lifetime into the LIFETIME variable:
LIFETIME=`samba-tool domain passwordsettings show | \
grep "^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...
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
...password lifetime into the LIFETIME variable:
>
> LIFETIME=`samba-tool domain passwordsettings show
> | \
> grep "^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 $EXPIRESST...
2015 May 08
0
Smba 4, looking for a command to show the password expiration date
...from samba 4.
Extract the value of the password lifetime into the LIFETIME variable:
LIFETIME=`samba-tool domain passwordsettings show
| \
grep "^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...
2015 May 08
0
Smba 4, looking for a command to show the password expiration date
...password lifetime into the LIFETIME variable:
>
> LIFETIME=`samba-tool
domain passwordsettings show
> | \
>
grep "^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`
>...
2007 Feb 27
1
Samba3 ldap password change
Hello to all,
I got samba3 PDC working with ldap. But I' m still wondering how to set
important things about the users passwords.
The first thing when a user login the first time should be to change his/her password? Where do I set when the passwords expire and how do I set it to 60 days?
I do not work mith Microsoft's usrmgr because of Vista clients.I look at my
samba/ldap with LDAP
1997 Aug 04
23
smbpasswd
I have finally managed to compile and install samba 1.9.7alpha5 with
des, shadow passwords and PAM.
I have a new problem now.
my 95 clients when set to user level access control and try sharing
something give this error.
"You cannot view a list of users at this time. Please try again later."
I belive this is because the rights on the file smbpasswd [the file
containing the passwords]