00001
00002
00003
00004
00005
00006
00007 #ifndef LDAP_URL_H
00008 #define LDAP_URL_H
00009
00010 #include <ldap.h>
00011 #include <StringList.h>
00012
00021 class LDAPUrl{
00022
00023 public :
00027 LDAPUrl(const char *url);
00028
00032 ~LDAPUrl();
00033
00038 int getPort() const;
00039
00043 int getScope() const;
00044
00048 const std::string& getURLString() const;
00049
00053 const std::string& getHost() const;
00054
00058 const std::string& getDN() const;
00059
00060
00064 const std::string& getFilter() const;
00065
00069 const StringList& getAttrs() const;
00070
00071 protected :
00072 int m_Port;
00073 int m_Scope;
00074 std::string m_Host;
00075 std::string m_DN;
00076 std::string m_Filter;
00077 StringList m_Attrs;
00078 LDAPURLDesc *m_urlDesc;
00079 std::string m_urlString;
00080 };
00081
00082 #endif //LDAP_URL_H