Diff for /servers/slapd/slappasswd.c between versions 1.2 and 1.2.4.5

version 1.2, 2004/03/02 21:11:31 version 1.2.4.5, 2008/02/11 23:24:18
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/slappasswd.c,v 1.1 2004/02/26 18:03:42 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/slappasswd.c,v 1.2.4.4 2007/01/02 21:43:59 kurt Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2004 The OpenLDAP Foundation.   * Copyright 1998-2008 The OpenLDAP Foundation.
  * Portions Copyright 1998-2003 Kurt D. Zeilenga.   * Portions Copyright 1998-2003 Kurt D. Zeilenga.
  * All rights reserved.   * All rights reserved.
  *   *
Line 33 Line 33
   
 #include <ldap.h>  #include <ldap.h>
 #include <lutil.h>  #include <lutil.h>
   #include <lutil_sha1.h>
   
 #include "ldap_defaults.h"  #include "ldap_defaults.h"
   
Line 57  usage(const char *s) Line 58  usage(const char *s)
 int  int
 slappasswd( int argc, char *argv[] )  slappasswd( int argc, char *argv[] )
 {  {
   #ifdef LUTIL_SHA1_BYTES
         char    *scheme = "{SSHA}";          char    *scheme = "{SSHA}";
   #else
           char    *scheme = "{SMD5}";
   #endif
   
         char    *newpw = NULL;          char    *newpw = NULL;
         char    *pwfile = NULL;          char    *pwfile = NULL;
         const char *text;          const char *text;

Removed from v.1.2  
changed lines
  Added in v.1.2.4.5


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org