]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#2475: Cyrus SASL realm fix
authorKurt Zeilenga <kurt@openldap.org>
Mon, 5 May 2003 23:54:22 +0000 (23:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 5 May 2003 23:54:22 +0000 (23:54 +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 );