Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Can I get password and login of user ...


13 replies to this topic

Silverlay

Silverlay
  • Members
  • 68 posts

Posted 14 December 2004 - 18:38

Can I get password and login of user that install my product?

Bonum initium est dimidium facti

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 December 2004 - 16:16

The LogonUser property will give you the user name. To get the password you will need to add a dialog that asks the user to enter his password.

Silverlay

Silverlay
  • Members
  • 68 posts

Posted 16 December 2004 - 19:41

Can i take it from Active directory using IS X? Can IS X work with active directory?
Bonum initium est dimidium facti

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 December 2004 - 09:16

I don't think there is any way to obtain the user's password from the operating system, for security reasons. At least I hope so smile.gif

Silverlay

Silverlay
  • Members
  • 68 posts

Posted 18 December 2004 - 10:23

No we can do this if we have hight prevelegies ... we can get user name and his password ...


Bonum initium est dimidium facti

smm

smm
  • Members
  • 10 posts

Posted 04 January 2006 - 14:42

Hi,
How did you do to get the user login?

Thanks in advance

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 05 January 2006 - 00:41

Due to security reasons, you cannot get the user password.

If Setup is run by a domain administrator, you have an alternative: you can change the password: domain admins do not need to know the current password to change it, so they can help users who forgot their passwords.
Few users would appreciate such behaviour, but at least you get the job done. If you do so, don't forget to deny the right to change the user password again - otherwise your information becomes useless.
I wonder why you need this info?

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 05 January 2006 - 01:30

In my opinion there is no acceptable or ethic deployment solution where the above should be necessary.
Regards
-Stein Åsmul

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 05 January 2006 - 01:32

Furthermore I think that force changing a user's password may corrupt certain data (intentionally done by the system). I do not have detailed knowledge here but I think it can cause problems at least for encrypted files (and possibly other things).
Regards
-Stein Åsmul

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 05 January 2006 - 10:29

No, a user can change his password as much as he likes to without any sideeffects. The password is only used to check the identity of the user, nothing else.
In fact, Microsoft recommends to use the policy that enforces all user to change their passwords every 60 days or so.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 05 January 2006 - 23:26

I meant for an admin to force change a password FOR the user, not the user changing their own password.
Regards
-Stein Åsmul

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 06 January 2006 - 14:04

I have no idea what kind of changes you noticed. Loss of certificates, loss of access to encrypted disks, loss of file ownership?

I know two differences differences exist between IADsUser::ChangePassword() and IADsUser::SetPassword() , 1) Password history policy is not enforced by SetPassword; 2) SetPassword fails unless a secure, encrypted connection exists between the server and workstation, allowing the workstation to validate the server. For ChangePassword this is not required.
And I wouldn't be surprised if SetPassword gives suspicious entries in the Security Eventlog as well.

Oh well, I guess this discussion is more an ADSI discussion.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 06 January 2006 - 16:24

If you open the computer management console, go to local users, right click a user and select set password you should get a warning message to the effect of what I have written above.
Regards
-Stein Åsmul

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 07 January 2006 - 19:34

Indeed... The way I read the related info is that SetPassword() destroys the "My" certificate key store of the account.

Thanks for pointing this out... I have to update my admin skills!