len = dn->bv_len + sizeof("uid=")-1 + sizeof(",cn=auth")-1;
/* username may have embedded realm name */
- if( realm = strchr( dn->bv_val, '@') ) {
+ if( ( realm = strchr( dn->bv_val, '@') ) ) {
*realm++ = '\0';
len += sizeof(",cn=")-2;
} else if( user_realm && *user_realm ) {
static int slap_sasl_regexp( struct berval *in, struct berval *out )
{
char *saslname = in->bv_val;
+#if 0
char *scope[] = { "base", "one", "sub" };
+#endif
SaslRegexp_t *reg;
int i;
struct berval *saslname, struct berval *sasldn )
{
int rc;
- Backend *be;
+ Backend *be = NULL;
struct berval dn = { 0, NULL };
int scope = LDAP_SCOPE_BASE;
Filter *filter = NULL;