在LDAP中建立父子关系

时间:2017-07-14 10:40:01

标签: ldap openldap

我正在为OpenLDAP定义自定义架构。如果我理解正确,namespace LinqExample { class Customer { private string name, phone, address; private int balance; public string custData; public string Name { get { return name; } set { name = value; } } public string Phone { get { return phone; } set { phone = value; } } public string Address { get { return address; } set { address = value; } } public int Balance { get { return balance; } set { balance = value; } } public Customer(string name, string phone, string address, int balance) { custData = name + phone + address + balance; } } } namespace LinqExample { class Program { static void Main(string[] args) { List<Customer> customers = new List<Customer>(); customers.Add(new Customer("Amit", "123-456-789", "123 Any Road", 25)); customers.Add(new Customer("Ajay", "571-888-1234", "1234 Any Street", 50)); customers.Add(new Customer("John", "707-123-4560", "456 John Street", -10)); customers.Add(new Customer("Ashley", "707-123-8402", "789 Ashley Street", -20)); var overdue = from cust in customers where cust.Balance < 0 orderby cust.Balance ascending select new { cust.Name, cust.Balance }; foreach (var cust in overdue) { Console.WriteLine($"Name = {cust.Name}, Balance = {cust.Balance}"); } } } } 定义中的SUP字段可用于指示哪些属性是从父类继承的。 但是,它不会强制子对象类的条目成为条目树中父类的条目的实际子级。那么如何告诉OpenLDAP某个对象类的条目必须是另一个给定对象类的条目的子节点?

(据我所知,有两个层次结构:属性层次结构和对象类层次结构,以及我发现的区别的LDAP教程。)

1 个答案:

答案 0 :(得分:1)

SUP标签意味着与SUP ObjectClasses关联的所有必需属性和可选属性也与从属ObjectClasses相关联。仅影响架构元素。

对于&#34;孩子 - 父母&#34; LDAP条目中的关系通常由目录信息树(DIT)的结构确定。