2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_URL_H
|
|
|
|
|
#define LDAP_URL_H
|
|
|
|
|
|
|
|
|
|
#include <ldap.h>
|
2000-10-03 14:25:34 -04:00
|
|
|
#include "StringList.h"
|
2000-09-01 14:46:32 -04:00
|
|
|
class LDAPUrl{
|
|
|
|
|
|
|
|
|
|
protected :
|
2000-10-03 14:25:34 -04:00
|
|
|
int m_Port;
|
|
|
|
|
int m_Scope;
|
|
|
|
|
string m_Host;
|
|
|
|
|
string m_DN;
|
|
|
|
|
string m_Filter;
|
|
|
|
|
StringList m_Attrs;
|
2000-09-01 14:46:32 -04:00
|
|
|
LDAPURLDesc *m_urlDesc;
|
2000-10-03 14:25:34 -04:00
|
|
|
string m_urlString;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
public :
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPUrl(const char *url);
|
2000-09-01 14:46:32 -04:00
|
|
|
~LDAPUrl();
|
|
|
|
|
|
|
|
|
|
int getPort() const;
|
|
|
|
|
int getScope() const;
|
2000-10-03 14:25:34 -04:00
|
|
|
const string& getURLString() const;
|
|
|
|
|
const string& getHost() const;
|
|
|
|
|
const string& getDN() const;
|
|
|
|
|
const string& getFilter() const;
|
|
|
|
|
const StringList& getAttrs() const;
|
2000-09-01 14:46:32 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //LDAP_URL_H
|