From df8c837c80a45ed4286e7279bdd17e5cdec729d1 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 15 Aug 2000 23:42:44 +0000 Subject: [PATCH] Fix typos --- servers/slapd/sasl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 2f37bb0f85..dcc83f5c74 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -463,16 +463,16 @@ int slap_sasl_bind( rc = LDAP_SUCCESS; if( username == NULL || ( - !strncasecmp( username, "anonymous", sizeof("anonyous")-1 ) && - ( ( username[sizeof("anonymous")] == '\0' ) || - ( username[sizeof("anonymous")] == '@' ) ) ) ) + !strncasecmp( username, "anonymous", sizeof("anonymous")-1 ) && + ( username[sizeof("anonymous")-1] == '\0' || + username[sizeof("anonymous")-1] == '@' ) ) ) { Debug(LDAP_DEBUG_TRACE, "<== slap_sasl_bind: anonymous\n", 0, 0, 0); } else if ( username[0] == 'u' && username[1] == ':' && username[2] != '\0' - && strpbrk( &username[2], "=,;\"\\") == NULL ) + && strpbrk( &username[2], "+=,;\"\\ \t") == NULL ) { *edn = ch_malloc( sizeof( "uid= + realm=" ) + strlen( &username[2] ) -- 2.39.5