摘要 |
A method and apparatus for enabling a database-accessing application to access current LDAP directory data is provided. According to one aspect, a database command that creates a database view is executed. The database view presents the results of a query on a table function that returns data from an LDAP directory. Because the results presented by the view contents are determined at the time that the view is queried, the view is always consistent with the directory. The database command may assign, to the view, a label that is assigned to a database table that an application is designed to access, so that whenever the application would attempt to access an object that corresponds to the label, the application accesses the view instead of the table. Consequently, it is not necessary to load the directory data into the table.
|