Verify a linux user password

View: New views
2 Messages — Rating Filter:   Alert me  

Verify a linux user password

by Cyrille Colin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,
i would like to check a linux user credential (etc/shadow). Does someone
know if there's tools in Mono.Unix ? I've seen that Syscall.crypt is
tagged as obsolete.
Cyrille.

_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list

Re: Verify a linux user password

by Chris Howie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 8, 2009 at 2:38 PM, Cyrille Colin <colin@...> wrote:
> i would like to check a linux user credential (etc/shadow). Does someone
> know if there's tools in Mono.Unix ? I've seen that Syscall.crypt is
> tagged as obsolete.

You would be better off looking for libpam bindings.  Using
/etc/shadow means that if a system your app is running on is using one
of the other authentication modules (like winbind or mysql) your app
will fail to authenticate otherwise valid users.

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list