Logo Search packages:      
Sourcecode: lat version File versions  Download package

string [] lat::ServerData::GetAttributeTypes (  ) [inline]

Gets a list of attribute types supported on the directory.

Returns:
An array of LdapEntry objects

Definition at line 170 of file ServerData.cs.

References lat::LdapServer::Search().

            {
                  LdapEntry[] entries = server.Search (
                                                      server.GetSchemaDN (), 
                                                      LdapConnection.SCOPE_BASE, 
                                                      server.DefaultSearchFilter, 
                                                      new string[] { "attributetypes" });
                  
                  if (entries == null)
                        return null;

                  List<string> tmp = new List<string> ();                     
                  LdapAttribute la = entries[0].getAttribute ("attributetypes");          

                  foreach (string s in la.StringValueArray) {
                        SchemaParser sp = new SchemaParser (s);
                        tmp.Add (sp.Names[0]);
                  }

                  tmp.Sort ();                        
                  return tmp.ToArray ();
            }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index