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

SchemaParser lat::ServerData::GetAttributeTypeSchema ( string  attrType ) [inline]

Gets the schema for a given attribute type.

attrTypeAttribute type
A SchemaParser object

Definition at line 197 of file ServerData.cs.

References lat::LdapServer::Search().

                  LdapEntry[] entries = server.Search (
                                                      server.GetSchemaDN (), 
                                                      new string[] { "attributetypes" });
                  if (entries == null)
                        return null;            

                  foreach (LdapEntry entry in entries) {

                        LdapAttribute la = entry.getAttribute ("attributetypes");
                        foreach (string s in la.StringValueArray) {

                              SchemaParser sp = new SchemaParser (s);
                              foreach (string a in sp.Names)
                                    if (attrType.Equals (a))
                                          return sp;
                  return null;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index