goodrobots / maverick

UAV Autonomous Systems Management
https://goodrobots.github.io/maverick/
MIT License
173 stars 61 forks source link

Openldap init broken #1010

Open fnoop opened 3 years ago

fnoop commented 3 years ago
Error: LDIF content:
dn: olcDatabase=hdb,cn=config
changetype: add
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=maverick,dc=one
olcDbIndex: objectClass eq
olcRootDN: cn=admin,dc=maverick,dc=one
olcRootPW: {SHA512}8dba3660197daf7642b9eaeaf77ef817ae9471f3b3d672bfb4fd94100dd5801cd9c990dd64938822e17643b8810cd31ee0ae87b9370884a7d880cfbc5307a573
olcAccess: to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break
olcAccess: to attrs=userPassword
  by self write
  by anonymous auth
  by dn="cn=admin,dc=maverick,dc=one" write
  by * none
olcAccess: to dn.base="" by * read
olcAccess: to *
  by self write
  by dn="cn=admin,dc=maverick,dc=one" write
  by * read

Error message: Execution of '/usr/bin/ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/openldap_database20210915-2537-wl34h1' returned 21: SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldap_add: Invalid syntax (21)
    additional info: objectClass: value #1 invalid per syntax
adding new entry "olcDatabase=hdb,cn=config"
Error: /Stage[main]/Maverick_security::Ldap_server/Openldap::Server::Database[dc=maverick,dc=one]/Openldap_database[dc=maverick,dc=one]/ensure: change from 'absent' to 'present' failed: LDIF content:
dn: olcDatabase=hdb,cn=config
changetype: add
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=maverick,dc=one
olcDbIndex: objectClass eq
olcRootDN: cn=admin,dc=maverick,dc=one
olcRootPW: {SHA512}8dba3660197daf7642b9eaeaf77ef817ae9471f3b3d672bfb4fd94100dd5801cd9c990dd64938822e17643b8810cd31ee0ae87b9370884a7d880cfbc5307a573
olcAccess: to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break
olcAccess: to attrs=userPassword
  by self write
  by anonymous auth
  by dn="cn=admin,dc=maverick,dc=one" write
  by * none
olcAccess: to dn.base="" by * read
olcAccess: to *
  by self write
  by dn="cn=admin,dc=maverick,dc=one" write
  by * read

Error message: Execution of '/usr/bin/ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/openldap_database20210915-2537-wl34h1' returned 21: SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldap_add: Invalid syntax (21)
    additional info: objectClass: value #1 invalid per syntax
adding new entry "olcDatabase=hdb,cn=config"
fnoop commented 3 years ago

Turn off maverick_security::ldap_server for now, we're not using it yet aynway.