cancel
Showing results for 
Search instead for 
Did you mean: 

Remove accounts from NTLM

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

We want to remove some accounts from NTLM in Alfresco.

Before an installation was configured to use only accounts from OpenLdap. The synchronisation was not enable.
To create a user in this environnement,  we add a user inside Alfresco and set a password (ie : 1234) (Another IT staff created the user in OpenLdap). We configure some spaces for this user in Alfreco. When this user access Alfresco, his password was not 1234 but the password from the OpenLdap. (because the authentification chain was only for OpenLdap)

Now we want to use the NTLM authentification (+OpenLdap) for some others accounts but we don't want that the users can use the 1234 password. Can we remove some account only in NTLM ?

Using the node browser (with store "user://alfrescoUserStore"), should I remove this accounts from here ?

Alfresco is in 32r2 and will be upgrade to 4.0d.

Thank you.
1 REPLY 1

dranakan
Champ on-the-rise
Champ on-the-rise
We can disable the account in NTLM like with this script :


//start script
var luceneQuery = "@usr\\:username:\"UserNameCHANGE\"";
var userStoreReference = "user://alfrescoUserStore";
var result = search.luceneSearch(userStoreReference, luceneQuery);
result[0].properties["usr:enabled"] = false;
result[0].save();
//end script

(change UserNameCHANGE)