r8163: if sidcount is zero it happened that we return NT_STATUS_NO_MEMORY...
[ira/wip.git] / source / auth / pass_check.c
index c468db55584b8a08de10716064c984c137af60e0..132d21949031865f250ac0510f1c0d913223470d 100644 (file)
@@ -22,6 +22,8 @@
    password database. The SMB encrypted password support is elsewhere */
 
 #include "includes.h"
+#include "system/passwd.h"
+#include "system/iconv.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
@@ -583,6 +585,30 @@ static NTSTATUS password_check(const char *password)
 }
 
 
+/**
+ Does a string have any lowercase chars in it?
+**/
+static BOOL strhaslower(const char *s)
+{
+       while (*s) {
+               if (islower(*s)) return True;
+               s++;
+       }
+       return False;
+}
+
+/**
+ Does a string have any uppercase chars in it?
+**/
+static BOOL strhasupper(const char *s)
+{
+       while (*s) {
+               if (isupper(*s)) return True;
+               s++;
+       }
+       return False;
+}
+
 
 /****************************************************************************
 CHECK if a username/password is OK