-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathppolicy.h
More file actions
22 lines (20 loc) · 805 Bytes
/
ppolicy.h
File metadata and controls
22 lines (20 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* this file defines the API which the pwdCheckModule, as used by the OpenLDAP
* ppolicy module, needs to implement
*/
#ifndef _PPOLICY_H
#define _PPOLICY_H
/**
* Check quality of provided password
*
* @param[in] pPasswd The password to be checked for quality, NULL terminated
* @param[out] ppErrStr Double pointer to human-readable error description, it
* must be NULL terminated and dynamically allocated as
* OpenLDAP will call free() on it
* @param[in] pEntry OpenLDAP Entry object of which the password is being
* changed
* @return LDAP_SUCCESS if the password meets the additional requirements,
* any other value means failure
*/
int check_password (char *pPasswd, char **ppErrStr, void *pEntry);
#endif