Some clarifications

merge-requests/1/head
Quique 5 years ago
parent c6d47fcca4
commit c8c544ce1a
  1. 2
      examples/data.ldif
  2. 2
      examples/lowry.conf
  3. 8
      main.go

@ -2,7 +2,7 @@ dn: cn=nss,dc=nodomain
objectClass: organizationalRole
objectClass: simpleSecurityObject
cn: nss
description: LDAP NSS user for user-lookups
description: The `nss' user is used for user lookups avoiding anonymous binds
userPassword: {SSHA}FHqod3gytvH9MDGhpMV1DKjyU7eO1EDG
structuralObjectClass: organizationalRole

@ -1,4 +1,4 @@
ldapaddr=localhost:389
ldapdn=dc=nodomain
ldapdc=dc=nodomain
nsspass=foobar
httpaddr=:8080

@ -11,11 +11,11 @@ import (
func main() {
var (
ldapaddr = flag.String("ldapaddr", "localhost:389", "LDAP server address and port")
ldapdc = flag.String("ldapdn", "", "LDAP dc domain")
nsspass = flag.String("nsspass", "", "LDAP nss password")
httpaddr = flag.String("httpaddr", ":8080", "HTTP server bind addr")
ldapdc = flag.String("ldapdc", "", "LDAP domain components")
nsspass = flag.String("nsspass", "", "Password of the LDAP `nss' user")
httpaddr = flag.String("httpaddr", ":8080", "Web server address and port")
)
flag.String(flag.DefaultConfigFlagname, "/etc/lowry.conf", "path to configuration")
flag.String(flag.DefaultConfigFlagname, "/etc/lowry.conf", "Path to configuration file")
flag.Parse()
l, err := ldap.Init(*ldapaddr, *ldapdc, *nsspass)

Loading…
Cancel
Save