diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-12-01 16:27:23 -0800 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-12-01 16:27:23 -0800 |
commit | f9ec9a62b8e386c7918b0b9ea628023ed9bd505e (patch) | |
tree | 09668c16a0389abdd05567936ad799472c8768bd /ldap/servers/slapd/pw.h | |
parent | 16e255be98bbb8b3bcfb080c632add7f048cfd44 (diff) | |
download | ds-f9ec9a62b8e386c7918b0b9ea628023ed9bd505e.tar.gz ds-f9ec9a62b8e386c7918b0b9ea628023ed9bd505e.tar.xz ds-f9ec9a62b8e386c7918b0b9ea628023ed9bd505e.zip |
Bug 195302 - Allow fine-grained password storage scheme to be set
This patch makes the server use the password storage scheme set in
the appropriate fine-grained password policy (if it is set). The
previous code was always using the global storage scheme.
This fix was based off of a fix contributed by Ulf Weltman of
Hewlett Packard.
Diffstat (limited to 'ldap/servers/slapd/pw.h')
-rw-r--r-- | ldap/servers/slapd/pw.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ldap/servers/slapd/pw.h b/ldap/servers/slapd/pw.h index 5f5eb1be..38c7fafe 100644 --- a/ldap/servers/slapd/pw.h +++ b/ldap/servers/slapd/pw.h @@ -32,8 +32,14 @@ * * * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission. - * Copyright (C) 2005 Red Hat, Inc. + * Copyright (C) 2009 Red Hat, Inc. + * Copyright (C) 2009 Hewlett-Packard Development Company, L.P. * All rights reserved. + * + * Contributors: + * Hewlett-Packard Development Company, L.P. + * Bugfix for bug #195302 + * * END COPYRIGHT BLOCK **/ #ifdef HAVE_CONFIG_H @@ -76,6 +82,7 @@ struct pw_scheme { struct pw_scheme *pw_name2scheme( char *name ); struct pw_scheme *pw_val2scheme( char *val, char **valpwdp, int first_is_default ); int pw_encodevals( Slapi_Value **vals ); +int pw_encodevals_ext( Slapi_PBlock *pb, const Slapi_DN *sdn, Slapi_Value **vals ); int checkPrefix(char *cipher, char *schemaName, char **encrypt); struct passwordpolicyarray *new_passwdPolicy ( Slapi_PBlock *pb, char *dn ); void delete_passwdPolicy( struct passwordpolicyarray **pwpolicy); |