s3:idmap_autorid: use less transactions
[mat/samba.git] / auth / common_auth.h
index 5bade6915f040a876ec1bb6bcc894388685ca40e..e9c4bb5f636faa1618b11b925e1ccfb55a660348 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "librpc/gen_ndr/krb5pac.h"
+#ifndef AUTH_COMMON_AUTH_H
+#define AUTH_COMMON_AUTH_H
+
+#include "librpc/gen_ndr/auth.h"
 
 #define USER_INFO_CASE_INSENSITIVE_USERNAME 0x01 /* username may be in any case */
 #define USER_INFO_CASE_INSENSITIVE_PASSWORD 0x02 /* password may be in any case */
@@ -25,9 +28,9 @@
 #define USER_INFO_INTERACTIVE_LOGON         0x08 /* don't check unix account status */
 
 enum auth_password_state {
-       AUTH_PASSWORD_RESPONSE,
-       AUTH_PASSWORD_HASH,
-       AUTH_PASSWORD_PLAIN
+       AUTH_PASSWORD_PLAIN = 1,
+       AUTH_PASSWORD_HASH = 2,
+       AUTH_PASSWORD_RESPONSE = 3
 };
 
 struct auth_usersupplied_info
@@ -61,3 +64,5 @@ struct auth_usersupplied_info
        } password;
        uint32_t flags;
 };
+
+#endif