mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
silence warnings
This commit is contained in:
parent
a7349c100e
commit
3a26ef5bbb
@ -382,7 +382,7 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
|
||||
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 ) {
|
||||
|
@ -286,7 +286,9 @@ static void slap_sasl_rx_exp(
|
||||
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;
|
||||
|
||||
@ -386,7 +388,7 @@ void slap_sasl2dn( Connection *conn,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user