Hi all,
I’m writing an LDAP based app for my office. I’m wondering how to design
it however. I’ve got a basic version running, but I’m not convinced that
I’m going about it the right way.
I have my ldap connection code in lib/ldap_connection.rb. This is what
my form targets call when binding. The @con connection object is then
stored in a global session hash (sess[session.session_id]=@con).
The reason I’m not confident in my approach is that all my methods at
the moment, need to be in this single file.
I’m playing around with validating in models without a db, but
essentially I’d like to have:
new_user_view -> new_user_controller -> new_user_model ->
new_user_ldap_method
edit_user_view -> edit_user_controller -> edit_user_model ->
edit_user_ldap_method
any thoughts on how I’d go about this?
thanks for reading.