NotAllowFullUserName: Boolean;
NotAllowFullUserName: System.Boolean;
The NotAllowFullUserName property determines a restriction on matching user name and password.
If the property is set to True, on password changing it is checked for matching the full user name. If they match, the error is generated.
By default the property is set to False, and the match check is not performed.
To execute the example, add links to the Metabase, ForeSystem (for the Fore.NET example) system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
PswPolicy: IMetabasePasswordPolicy;
Lic: Object;
Begin
MB := MetabaseClass.Active;
// Check out license to work with security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
PswPolicy := MS.Policy.PasswordPolicy;
// Prohibit correspondence of the full user name and password
PswPolicy.NotAllowFullUserName := True;
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;
…
Public Shared Sub Main(Params : StartParams);
Var
MB: IMetabase;
MS: IMetabaseSecurity;
PswPolicy: IMetabasePasswordPolicy;
Lic: Object;
Begin
MB := Params.Metabase;
// Check out license to work with security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
MS := MB.Security;
PswPolicy := MS.Policy.PasswordPolicy;
// Prohibit correspondence of the full user name and password
PswPolicy.NotAllowFullUserName := True;
// Save changes
MS.Apply();
// Check in license
Lic := Null;
End Sub;
After executing the example the prohibition for matching full user name and password is set.
See also: