|
@@ -229,9 +229,8 @@ func (ldap *ldapHandler) convertGroup(ldapUser *ldap.Entry) UserAccount {
|
|
|
|
|
|
func (ldap *ldapHandler) TestConnection(w http.ResponseWriter, r *http.Request) {
|
|
func (ldap *ldapHandler) TestConnection(w http.ResponseWriter, r *http.Request) {
|
|
//marshall it and return the connection status
|
|
//marshall it and return the connection status
|
|
- log.Println("EXCEC")
|
|
|
|
userList, err := ldap.getAllUser(10)
|
|
userList, err := ldap.getAllUser(10)
|
|
- log.Println(userList)
|
|
|
|
|
|
+ log.Println(userList, err)
|
|
if err != nil {
|
|
if err != nil {
|
|
empty, err := json.Marshal(syncorizeUserReturnInterface{})
|
|
empty, err := json.Marshal(syncorizeUserReturnInterface{})
|
|
if err != nil {
|
|
if err != nil {
|