update project name
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/go-ldap/ldap/v3"
|
||||
|
||||
common "user-manager-api/app/common"
|
||||
common "access-manager-api/app/common"
|
||||
)
|
||||
|
||||
// LDAPClient wrapper struct containing the connection, baseDN, peopleDN, and groupsDN
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-ldap/ldap/v3"
|
||||
|
||||
common "user-manager-api/app/common"
|
||||
common "access-manager-api/app/common"
|
||||
)
|
||||
|
||||
func LDAPEntryToUser(entry *ldap.Entry) common.User {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package localdb
|
||||
|
||||
import (
|
||||
common "access-manager-api/app/common"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
common "user-manager-api/app/common"
|
||||
)
|
||||
|
||||
type DB struct {
|
||||
|
||||
+5
-5
@@ -9,11 +9,11 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
common "access-manager-api/app/common"
|
||||
ldap "access-manager-api/app/ldap"
|
||||
localdb "access-manager-api/app/localdb"
|
||||
pve "access-manager-api/app/pve"
|
||||
paas "proxmoxaas-common-lib"
|
||||
common "user-manager-api/app/common"
|
||||
ldap "user-manager-api/app/ldap"
|
||||
localdb "user-manager-api/app/localdb"
|
||||
pve "user-manager-api/app/pve"
|
||||
|
||||
"github.com/gin-contrib/sessions"
|
||||
"github.com/gin-contrib/sessions/cookie"
|
||||
@@ -510,7 +510,7 @@ func Run(configPath *string, localDBPath *string) {
|
||||
}
|
||||
})
|
||||
|
||||
log.Printf("Starting User Manager API on port %s\n", strconv.Itoa(Config.ListenPort))
|
||||
log.Printf("Starting Access Manager API on port %s\n", strconv.Itoa(Config.ListenPort))
|
||||
|
||||
err = router.Run("0.0.0.0:" + strconv.Itoa(Config.ListenPort))
|
||||
if err != nil {
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
common "access-manager-api/app/common"
|
||||
"access-manager-api/app/ldap"
|
||||
"fmt"
|
||||
"net/http"
|
||||
common "user-manager-api/app/common"
|
||||
"user-manager-api/app/ldap"
|
||||
)
|
||||
|
||||
func NewPool(backends *UserSession, poolname string) (int, error) {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
"net/http"
|
||||
"slices"
|
||||
|
||||
common "user-manager-api/app/common"
|
||||
common "access-manager-api/app/common"
|
||||
|
||||
"github.com/luthermonson/go-proxmox"
|
||||
)
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ import (
|
||||
"github.com/gin-contrib/sessions"
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
localdb "user-manager-api/app/localdb"
|
||||
pve "user-manager-api/app/pve"
|
||||
localdb "access-manager-api/app/localdb"
|
||||
pve "access-manager-api/app/pve"
|
||||
)
|
||||
|
||||
type Realm struct {
|
||||
|
||||
Reference in New Issue
Block a user