Move role related views to FAB Auth manager:

- List roles
- Edit role
- Create role
- View role
user_attributes = {}
            
            
            
            
            if self.auth_ldap_bind_user:
                
                
                self._ldap_bind_indirect(ldap, con)
                
                
                
                
                if self.auth_ldap_search:
                    user_dn, user_attributes = self._search_ldap(ldap, con, username)
                else:
                    log.error("AUTH_LDAP_SEARCH must be set when using AUTH_LDAP_BIND_USER")
                    return None
                
                if user_dn is None:
                    log.info(LOGMSG_WAR_SEC_NOLDAP_OBJ.format(username))
                    return None
                
                if not self._ldap_bind(ldap, con, user_dn, password):
                    if user:
                        self.update_user_auth_stat(user, False)
                    
                    log.info(LOGMSG_WAR_SEC_LOGIN_FAILED.format(username))
                    return None