replace LdapDN with LdapDn
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -9,7 +9,7 @@ type Group struct {
|
||||
GroupId int `db:"GroupId" json:"groupId"`
|
||||
GroupName string `db:"GroupName" json:"groupName"`
|
||||
LdapGroup bool `db:"LdapGroup" json:"ldapGroup"`
|
||||
LdapDn string `db:"LdapDN" json:"ldapDn"`
|
||||
LdapDn string `db:"LdapDn" json:"ldapDn"`
|
||||
Admin bool `db:"Admin" json:"admin"`
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ func (g *Group) GroupAdd() (*Group, error) {
|
||||
if err != nil && err.Error() == "group not found" {
|
||||
log.Printf("GroupAdd confirmed no existing group, continuing with creation of group '%s'\n", g.GroupName)
|
||||
|
||||
result, err := db.NamedExec(("INSERT INTO groups (GroupName, LdapGroup, LdapDN, Admin) VALUES (:GroupName, :LdapGroup, :LdapDn, :Admin);"), g)
|
||||
result, err := db.NamedExec(("INSERT INTO groups (GroupName, LdapGroup, LdapDn, Admin) VALUES (:GroupName, :LdapGroup, :LdapDn, :Admin);"), g)
|
||||
|
||||
if err != nil {
|
||||
log.Printf("GroupAdd error executing sql record : '%s'\n", err)
|
||||
|
Reference in New Issue
Block a user