s3-auth: Add passwd_to_SamInfo3().
authorAndreas Schneider <asn@samba.org>
Fri, 13 Dec 2013 18:08:34 +0000 (19:08 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Feb 2014 22:41:25 +0000 (11:41 +1300)
commit1bb11c7744df6928cb8a096373ab920366b38770
tree83399b5b5a22e594d6e6b27911c0d7938c91e44c
parent241e98d8ee099f9cc5feb835085b4abd2b1ee663
s3-auth: Add passwd_to_SamInfo3().

First this function tries to contacts winbind if the user is a domain
user to get valid information about it. If winbind isn't running it will
try to create everything from the passwd struct. This is not always
reliable but works in most cases. It improves the current situation
which doesn't talk to winbind at all.

Pair-Programmed-With: Guenther Deschner <gd@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/proto.h
source3/auth/server_info.c