valid.cc valid.h
basic_sspi_auth_CXXFLAGS = -Wl,--enable-auto-import
basic_sspi_auth_LDADD = \
+ $(top_builddir)/lib/libsspwin32.la \
+ $(top_builddir)/lib/libmiscencoding.la \
$(COMPAT_LIB) \
- -L$(top_builddir)/lib \
- -lsspwin32 \
- -lmiscencoding \
-lnetapi32 -ladvapi32 \
$(XTRA_LIBS)
return result;
}
-/* Valid_User return codes -
- 0 - User authenticated successfully.
- 1 - Server error.
- 2 - Group membership error.
- 3 - Logon error; Incorrect password or username given.
-*/
-
int
Valid_User(char *UserName, char *Password, char *Group)
{
extern char Default_NTDomain[DNLEN+1];
extern const char * errormsg;
+/**
+ * Valid_User return codes.
+ *
+ * \retval 0 User authenticated successfully.
+ * \retval 1 Server error.
+ * \retval 2 Group membership error.
+ * \retval 3 Logon error; Incorrect password or username given.
+ */
+int Valid_User(char *UserName, char *Password, char *Group);
+
/* Debugging stuff */
#if defined(__GNUC__) /* this is really a gcc-ism */
#include <unistd.h>