#ifdef HAVE_TLS
{ LDAP_EXOP_START_TLS, starttls_extop },
#endif
+ { LDAP_EXOP_X_MODIFY_PASSWD, passwd_extop },
{ NULL, NULL }
};
#include <lutil.h>
-static int passwd_main(
+int passwd_extop(
SLAP_EXTOP_CALLBACK_FN ext_callback,
Connection *conn, Operation *op, char *oid,
struct berval *reqdata, struct berval **rspdata, char **text )
return rc;
}
-int
-slap_passwd_init( void )
-{
- return load_extop( LDAP_EXOP_X_MODIFY_PASSWD, passwd_main );
-}
-
int
slap_passwd_check(
Attribute *a,
* starttls.c
*/
-LIBSLAPD_F (int) starttls_extop LDAP_P(( SLAP_EXTOP_CALLBACK_FN, Connection *conn, Operation *op, char * oid, struct berval * reqdata, struct berval ** rspdata, char ** text ));
+LIBSLAPD_F (int) starttls_extop LDAP_P((
+ SLAP_EXTOP_CALLBACK_FN,
+ Connection *conn, Operation *op,
+ char * oid,
+ struct berval * reqdata,
+ struct berval ** rspdata,
+ char ** text ));
/*
/*
* passwd.c
*/
-LIBSLAPD_F (int) slap_passwd_init( void );
+LIBSLAPD_F (int) passwd_extop LDAP_P((
+ SLAP_EXTOP_CALLBACK_FN,
+ Connection *conn, Operation *op,
+ char * oid,
+ struct berval * reqdata,
+ struct berval ** rspdata,
+ char ** text ));
LIBSLAPD_F (int) slap_passwd_check(
Attribute *attr,