This file is indexed.

/usr/include/root/TLDAPServer.h is in libroot-net-ldap-dev 5.34.30-0ubuntu8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// @(#)root/ldap:$Id$
// Author: Oleksandr Grebenyuk   21/09/2001

/*************************************************************************
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TLDAPServer
#define ROOT_TLDAPServer

#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_CintLDAP
#include "CintLDAP.h"
#endif

class TList;
class TLDAPResult;
class TLDAPEntry;


class TLDAPServer : public TObject {

private:
   LDAP         *fLd;           // LDAP handle of current connection
   TString       fBinddn;       // Bind name
   TString       fPassword;     // Password
   Bool_t        fIsConnected;  // Current connection state

   Int_t         Bind();
   void          Unbind();

   static void   DeleteMods(LDAPMod **mods);

protected:
   TLDAPServer(const TLDAPServer&);
   TLDAPServer& operator=(const TLDAPServer&);

public:
   TLDAPServer(const char *host, Int_t port = LDAP_PORT,
               const char *binddn = 0, const char *password = 0,
               Int_t version = LDAP_VERSION2);

   virtual ~TLDAPServer();

   Bool_t        IsConnected() const { return fIsConnected; };
   TLDAPResult  *Search(const char *base = "",
                        Int_t scope = LDAP_SCOPE_BASE,
                        const char *filter = 0,
                        TList *attrs = 0,
                        Bool_t attrsonly = 0);
   const char   *GetNamingContexts();
   const char   *GetSubschemaSubentry();
   TLDAPResult  *GetObjectClasses();
   TLDAPResult  *GetAttributeTypes();

   Int_t         AddEntry(TLDAPEntry &entry);
   Int_t         ModifyEntry(TLDAPEntry &entry, Int_t mode = LDAP_MOD_REPLACE);
   Int_t         DeleteEntry(const char *dn);
   Int_t         RenameEntry(const char *dn, const char *newrdn,
                             Bool_t removeattr = kFALSE);

   ClassDef(TLDAPServer, 0)  // Connection to LDAP server
};

#endif