Forum Discussion
Stanislas_Piro2
Apr 20, 2017Cumulonimbus
Hi,
is the password length 14 characters? do or the only fixed length is the token?
you can use the following
session.logon.last.ldappassword (secure)=
set password [mcget -secure {session.logon.last.password}];
set tokenid [expr {[string length $password] -6 }];
set ldappassword [string range $password 0 $tokenid-1];
unset password tokens;
return $ldappassword;
session.logon.last.tokenpassword (secure)=
set password [mcget -secure {session.logon.last.password}];
set tokenid [expr {[string length $password] -6 }];
set tokenpassword [string range $password $tokenid end];
unset password tokens;
return $tokenpassword;
Edit : I added semicolon at the end of each line. when editing expression, commands are set on one line.