[Samba] Account locked and delayed user data propagation...
Marco Gaiarin
gaio at sv.lnf.it
Tue Dec 3 16:51:28 UTC 2019
Mandi! Rowland penny via samba
In chel di` si favelave...
> Do you mean apart from '$((${LOT} + ${LOD}))' should really be
> '$((LOT+LOD))' ?
Apart bashism, this seems not the point:
root at vdcsv1:~# bash -vx /tmp/test
LOT=1
+ LOT=1
LOD=1
+ LOD=1
TMPF=$((${LOT} + ${LOD}))
+ TMPF=2
echo $TMPF
+ echo 2
2
TMPF=$((LOT+LOD))
+ TMPF=2
echo $TMPF
+ echo 2
2
> I take it that you are calling the function like this: user_is_locked gaio
> try it like this: res=$(user_is_locked gaio)
> change all 'return' to 'echo'
> Then check what "$res" is
I've runm the script manually with 'bash -x', and so i've seen that LOT
is non zero, while LOD is zero.
But clearly 'LockoutTime' is in the past, and with a duration of
zero... it is still in the past. ;-)
So, i restate the question: how can i determine if account is locked
with an LDAP query?!
Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the samba
mailing list