+// $OpenLDAP$
/*
- * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/**
* Start TLS on this connection. This isn't in the constructor,
* because it could fail (i.e. server doesn't have SSL cert, client
- * api wasn't compiled against OpenSSL, etc.). If you need TLS,
- * then you should error if this call fails with an error code.
+ * api wasn't compiled against OpenSSL, etc.).
+ * @throws LDAPException if the TLS Layer could not be setup
+ * correctly
*/
- int start_tls();
+ void start_tls();
/**
* Performs a simple authentication with the server
*/
void bind(const std::string& dn="", const std::string& passwd="",
LDAPConstraints* cons=0);
+ void saslInteractiveBind(const std::string& mech,
+ int flags=0,
+ SaslInteractionHandler *sih=0,
+ const LDAPConstraints *cons=0);
/**
* Performs the UNBIND-operation on the destination server
void setConstraints(LDAPConstraints *cons);
const LDAPConstraints* getConstraints() const ;
+ TlsOptions getTlsOptions() const;
};
#endif //LDAP_CONNECTION_H