"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ldapconnection.h" between
msktutil-1.1.tar.bz2 and msktutil-1.2.1.tar.gz

About: msktutil is a program for interoperability with Active Directory.

ldapconnection.h  (msktutil-1.1.tar.bz2):ldapconnection.h  (msktutil-1.2.1)
skipping to change at line 61 skipping to change at line 61
~LDAP_mod(); ~LDAP_mod();
}; };
class LDAPConnection { class LDAPConnection {
private: private:
LDAP *m_ldap; LDAP *m_ldap;
int modify_ext(const std::string &dn, const std::string& type, char *vals[], int op, bool check); int modify_ext(const std::string &dn, const std::string& type, char *vals[], int op, bool check);
public: public:
LDAPConnection(const std::string &server, bool no_reverse_lookups = false); LDAPConnection(const std::string &server, const std::string &sasl_mechanisms , bool no_reverse_lookups = false);
void set_option(int option, const void *invalue); void set_option(int option, const void *invalue);
void get_option(int option, void *outvalue); void get_option(int option, void *outvalue);
bool is_connected() const { return m_ldap != NULL; }; bool is_connected() const { return m_ldap != NULL; };
LDAPMessage *search( LDAPMessage *search(
const std::string &base_dn, int scope, const std::string &filter , const std::string& attr); const std::string &base_dn, int scope, const std::string &filter , const std::string& attr);
LDAPMessage *search( LDAPMessage *search(
const std::string &base_dn, int scope, const std::string &fil ter, const char *attr[]); const std::string &base_dn, int scope, const std::string &fil ter, const char *attr[]);
skipping to change at line 84 skipping to change at line 84
const std::string &base_dn, int scope, const std::string &filter, const std::vector<std::string>& attr); const std::string &base_dn, int scope, const std::string &filter, const std::vector<std::string>& attr);
LDAPMessage *first_entry(LDAPMessage *mesg); LDAPMessage *first_entry(LDAPMessage *mesg);
int add_attr(const std::string &dn, const std::string &attrName, const std:: string &val); int add_attr(const std::string &dn, const std::string &attrName, const std:: string &val);
int simple_set_attr(const std::string &dn, const std::string &attrName, cons t std::string &val); int simple_set_attr(const std::string &dn, const std::string &attrName, cons t std::string &val);
int remove_attr(const std::string &dn, const std::string& type, const std::s tring& name); int remove_attr(const std::string &dn, const std::string& type, const std::s tring& name);
int flush_attr_no_check(const std::string &dn, const std::string& type); int flush_attr_no_check(const std::string &dn, const std::string& type);
int add(const std::string &dn, const LDAP_mod& mod); int add(const std::string &dn, const LDAP_mod& mod);
int del(const std::string &dn);
void print_diagnostics(const char *msg, int err); void print_diagnostics(const char *msg, int err);
std::string get_one_val(LDAPMessage *msg, const std::string& name); std::string get_one_val(LDAPMessage *msg, const std::string& name);
int count_entries(LDAPMessage *msg); int count_entries(LDAPMessage *msg);
std::vector<std::string> get_all_vals(LDAPMessage *msg, const std::string& n ame); std::vector<std::string> get_all_vals(LDAPMessage *msg, const std::string& n ame);
~LDAPConnection(); ~LDAPConnection();
}; };
#endif #endif
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)