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

SchemaParser lat::ServerData::GetObjectClassSchema ( string  objClass ) [inline]

Gets the schema of a given object class.

objClassName of object class
A SchemaParser object

Definition at line 449 of file ServerData.cs.

References lat::LdapServer::Search().

                  LdapEntry[] entries;
                  entries = server.Search (
                        server.GetSchemaDN (), 
                        new string[] { "objectclasses" });
                  foreach (LdapEntry entry in entries) {                

                        LdapAttribute la = entry.getAttribute ("objectclasses");
                        foreach (string s in la.StringValueArray) {
                              SchemaParser sp = new SchemaParser (s);

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

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index