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

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

Gets the servers matching rules (if available).

Returns:
matching rules

Definition at line 382 of file ServerData.cs.

References lat::LdapServer::Search().

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

                  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