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

SchemaParser lat::ServerData::GetLdapSyntax ( string  synName ) [inline]

Gets the schema information for a given ldap syntax.

Parameters:
attrTypeLDAP syntax
Returns:
schema information

Definition at line 291 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;
                  
                  LdapAttribute la = entries[0].getAttribute ("ldapSyntaxes");
                  foreach (string s in la.StringValueArray) {
                        SchemaParser sp = new SchemaParser (s);
                        if (synName.Equals (sp.Description))
                                    return sp;
                  }
                  
                  return null;
            }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index