]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slappasswd.c
use slab memory for proxyauthz
[openldap] / servers / slapd / slappasswd.c
index 50575217fdd22f76e20cff20b331319b572d3981..1bfdb768f1dda2ecc3108d2447c4e136141ba677 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * Portions Copyright 1998-2003 Kurt D. Zeilenga.
  * All rights reserved.
  *
@@ -33,6 +33,7 @@
 
 #include <ldap.h>
 #include <lutil.h>
+#include <lutil_sha1.h>
 
 #include "ldap_defaults.h"
 
@@ -57,7 +58,12 @@ usage(const char *s)
 int
 slappasswd( int argc, char *argv[] )
 {
+#ifdef LUTIL_SHA1_BYTES
        char    *scheme = "{SSHA}";
+#else
+       char    *scheme = "{SMD5}";
+#endif
+
        char    *newpw = NULL;
        char    *pwfile = NULL;
        const char *text;