Reputation: 1920
Lets say I've got an application which is using users from LDAP (I'm not talking about authentication).
I'm for example, using theses users as author of documents I'm filling in forms. I need to search them and display the informations of these users. I'm not needing fresh info (1 day is ok).
What's the best practice ?
Basically, my question is : is the ldap made for regular queries of should we only use it for delta synchronization ?
Upvotes: 0
Views: 80
Reputation: 199
It entirely depends on the type of application.
Always query my LDAP to get my user ?
LDAP is characterised as write-once-read-many-times. LDAP is used where in the data doesn't change in most cases. It is used for such operations where in you query LDAP a lot, like searching for a user whose name starts with 's', searching for users who are managers in your organizations.
Daily synchronize my application to the LDAP to prevent overloading the LDAP ?
If you don't really have search in your application it is best to implement cache with TTL or on demand cache.
Upvotes: 1