Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get_connection ¶
Gets new LDAP connection. Must be Close()d later!
func QueryLdap ¶
func QueryLdap(base string, filter string, attributes []string) *ldap.SearchResult
Performs basic query
func UserDetailsLoadFilter ¶
func UserDetailsLoadFilter(c *revel.Controller, fc []revel.Filter)
Filter that loads the user's LDAP groups
Types ¶
type User_details ¶
type User_details struct { Username string Visiblename string Photo []byte Groups []string Roles []string }
Struct for holding details about user
func Build_user_details ¶
func Build_user_details(entry *ldap.Entry) User_details
Build the struct from LDAP search result
func Get_user_details ¶
func Get_user_details(username string) User_details
Retrieve user details from LDAP
Click to show internal directories.
Click to hide internal directories.