]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/starttls.c
ITS#3818 fix index_substr_any_step keyword
[openldap] / servers / slapd / starttls.c
index 7ab7328012bb2a3966fe2c2f08c2233175f67df2..e8170ad69056d1115a21482d181073aa318b6566 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -55,7 +55,7 @@ starttls_extop ( Operation *op, SlapReply *rs )
                goto done;
        }
 
-       if ( !( SLAPD_GLOBAL(disallows) & SLAP_DISALLOW_TLS_2_ANON ) &&
+       if ( !( global_disallows & SLAP_DISALLOW_TLS_2_ANON ) &&
                ( op->o_conn->c_dn.bv_len != 0 ) )
        {
                Statslog( LDAP_DEBUG_STATS,
@@ -66,7 +66,7 @@ starttls_extop ( Operation *op, SlapReply *rs )
                connection2anonymous( op->o_conn );
        }
 
-       if ( ( SLAPD_GLOBAL(disallows) & SLAP_DISALLOW_TLS_AUTHC ) &&
+       if ( ( global_disallows & SLAP_DISALLOW_TLS_AUTHC ) &&
                ( op->o_conn->c_dn.bv_len != 0 ) )
        {
                rs->sr_text = "cannot start TLS after authentication";
@@ -75,8 +75,8 @@ starttls_extop ( Operation *op, SlapReply *rs )
        }
 
        /* fail if TLS could not be initialized */
-       if ( SLAPD_GLOBAL(tls_ctx) == NULL ) {
-               if (SLAPD_GLOBAL(default_referral) != NULL) {
+       if ( slap_tls_ctx == NULL ) {
+               if (default_referral != NULL) {
                        /* caller will put the referral in the result */
                        rc = LDAP_REFERRAL;
                        goto done;