I have 1000 users I need to change the password for to a known password for a migration tool (groupwise to exchange). I do not have any of the existing password. How do I change the password for 1000 groupwise users via batch using ldap or other medium?
closed as off-topic by Jenny D, Andrew Schulman, dawud, Dave M, Ward♦ Sep 26 '14 at 15:40
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Jenny D, Andrew Schulman, dawud, Dave M, Ward
If you can run powershell you could use the Set-ADAccountPassword cmdlet with the RESET flag so it ignores the "OldPassword" input requirement:
When you specify the Reset parameter, the password is set to the NewPassword value that you provide and the OldPassword parameter is not required.
If only LDAP tools are a good way to approach it:
you do not need to give the "old" password in the LDAPMODIFY tool.
dn: uid=def,dc=example,dc=com changetype: modify replace: userPassword userPassword: another-new-password
This will work as on the string: "replace: userPassword" they are not asking for the current / old password but only indicating what they are modifying.
Hope this is of help,
If you want the users to be able to maintain their old password, here's a (kinda sneaky) way that you do that... it is perhaps rather unconventional (for legitimate uses).
If you have something that people [have to] sign into with a username and password, and you are able to modify the code of what is reading in their password, then you could do the following:
- with plenty of time before you switch systems:
- assuming that user logs into an application/website that takes their username and password,
- alter the application to:
- read in the username and password from the user;
- check the password that it matches;
- do a strength-test so it prevents propagating weak passwords;
- (silently) sets the user's password in the new directory to the same password -- this requires rights appropriate to do so;
- logs the user into the application.
When it gets time to switch, remove this code, and educate users that they may have to get their password changed.
As you can see, it does somewhat borrow on less-honest techniques that might be used in a phony website, but could pay-off in having fewer users to have to change passwords for. [it's also a good illustration of why something like SSO systems such as SAML, with some user-education, are helpful in helping to prevent phishing attacks].
Please do the following. Log in to the iManager if it is installed you will find it at https:///nps
Login as Admin or with equivalent rights.
Go within the Menu eDirectory Maintenance and run the Import, Convert, Export Agent or ICE to export an leif file.
Than you follow this TID https://www.novell.com/support/kb/doc.php?id=7003319
and, after you modified the file you will import it, by the same procedure.
If you use this way, you can always run a dry run, to check if your syntax is correct. Tell me if you need any further information on this.