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

SchemaParser lat::ServerData::GetMatchingRule ( string  matName ) [inline]

Gets the schema information for a given matching rule.

Parameters:
attrTypeMatching rule
Returns:
schema information

Definition at line 356 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;
                  
                  LdapAttribute la = entries[0].getAttribute ("matchingRules");
                  foreach (string s in la.StringValueArray) {
                        SchemaParser sp = new SchemaParser (s);

                        foreach (string a in sp.Names)
                              if (matName.Equals (a))
                                          return sp;
                  }
                  
                  return null;
            }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index