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

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

Gets the servers LDAP syntaxes (if available).

Returns:
matching rules

Definition at line 315 of file ServerData.cs.

References lat::LdapServer::Search().

            {
                  LdapEntry[] entries = server.Search (
                                                      server.GetSchemaDN (), 
                                                      LdapConnection.SCOPE_BASE, 
                                                      "", 
                                                      new string[] { "ldapSyntaxes" });
                  
                  if (entries == null)
                        return null;
                        
                  List<string> tmp = new List<string> ();                     
                  LdapAttribute la = entries[0].getAttribute ("ldapSyntaxes");            

                  foreach (string s in la.StringValueArray) {
                        SchemaParser sp = new SchemaParser (s);
                        tmp.Add (sp.Description);
                  }
                  
                  tmp.Sort ();
                  return tmp.ToArray ();                    
            }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index