int slap_passwd_parse( struct berval *reqdata,
struct berval **id,
- struct berval **old,
- struct berval **new,
+ struct berval **oldpass,
+ struct berval **newpass,
char **text )
{
int rc = LDAP_SUCCESS;
}
if( tag == LDAP_TAG_EXOP_X_MODIFY_PASSWD_OLD ) {
- if( old == NULL ) {
+ if( oldpass == NULL ) {
Debug( LDAP_DEBUG_TRACE, "slap_passwd_parse: OLD not allowed.\n",
0, 0, 0 );
*text = "use bind to verify old password";
goto done;
}
- tag = ber_scanf( ber, "O", old );
+ tag = ber_scanf( ber, "O", oldpass );
if( tag == LBER_ERROR ) {
Debug( LDAP_DEBUG_TRACE, "slap_passwd_parse: ID parse failed.\n",
}
if( tag == LDAP_TAG_EXOP_X_MODIFY_PASSWD_NEW ) {
- if( new == NULL ) {
+ if( newpass == NULL ) {
Debug( LDAP_DEBUG_TRACE, "slap_passwd_parse: NEW not allowed.\n",
0, 0, 0 );
*text = "user specified passwords disallowed";
goto done;
}
- tag = ber_scanf( ber, "O", new );
+ tag = ber_scanf( ber, "O", newpass );
if( tag == LBER_ERROR ) {
Debug( LDAP_DEBUG_TRACE, "slap_passwd_parse: OLD parse failed.\n",
*id = NULL;
}
- if( old != NULL ) {
- ber_bvfree( *old );
- *old = NULL;
+ if( oldpass != NULL ) {
+ ber_bvfree( *oldpass );
+ *oldpass = NULL;
}
- if( new != NULL ) {
- ber_bvfree( *new );
- *new = NULL;
+ if( newpass != NULL ) {
+ ber_bvfree( *newpass );
+ *newpass = NULL;
}
}