]> git.sur5r.net Git - openldap/commitdiff
ITS#2475 delete bogus SASL2 call
authorHoward Chu <hyc@openldap.org>
Wed, 30 Apr 2003 08:08:08 +0000 (08:08 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 30 Apr 2003 08:08:08 +0000 (08:08 +0000)
libraries/libldap/cyrus.c

index 46449c54bc16ff96dcedb1e845c6bb7eef5b4eb6..742d13641716b74995e547578423034d5f558fe2 100644 (file)
@@ -724,14 +724,12 @@ ldap_int_sasl_bind(
                        fprintf( stderr, "SASL username: %s\n", data );
                }
 
-#if SASL_VERSION_MAJOR >= 2
-               saslrc = sasl_getprop( ctx, SASL_DEFUSERREALM, (SASL_CONST void **) &data );
-#else
+#if SASL_VERSION_MAJOR < 2
                saslrc = sasl_getprop( ctx, SASL_REALM, (SASL_CONST void **) &data );
-#endif
                if( saslrc == SASL_OK && data && *data ) {
                        fprintf( stderr, "SASL realm: %s\n", data );
                }
+#endif
        }
 
        saslrc = sasl_getprop( ctx, SASL_SSF, (SASL_CONST void **) &ssf );