Something that actually works

This commit is contained in:
Alex 2020-02-01 15:09:09 +01:00
parent da2c37bb95
commit e8ce6e33e5
3 changed files with 4 additions and 3 deletions

View file

@ -12,7 +12,7 @@ job "directory" {
task "server" { task "server" {
driver = "docker" driver = "docker"
config { config {
image = "lxpz/bottin_amd64:3" image = "lxpz/bottin_amd64:4"
readonly_rootfs = true readonly_rootfs = true
port_map { port_map {
ldap_port = 389 ldap_port = 389

View file

@ -86,7 +86,8 @@ func readTagAndLength(conn *bufio.Reader, bytes *[]byte) (ret ldap.TagAndLength,
// } // }
// We are expecting the LDAP sequence tag 0x30 as first byte // We are expecting the LDAP sequence tag 0x30 as first byte
if b != 0x30 { if b != 0x30 {
return nil, fmt.Errorf("Expecting 0x30 as first byte, but got %#x instead", b) err = fmt.Errorf("Expecting 0x30 as first byte, but got %#x instead", b)
return
} }
b, err = readBytes(conn, bytes, 1) b, err = readBytes(conn, bytes, 1)

View file

@ -337,7 +337,7 @@ func (server *Server) handleModifyInternal(state *State, r *message.ModifyReques
continue continue
} }
if itemDN != dn { if itemDN != dn {
logger.Fatal("itemDN != dn in handleModifyInternal") server.logger.Fatal("itemDN != dn in handleModifyInternal")
} }
vals, err := parseValue(item.Value) vals, err := parseValue(item.Value)
if err != nil { if err != nil {