Giter VIP home page Giter VIP logo

justdavis-ansible's People

Contributors

karlmdavis avatar

Watchers

 avatar  avatar

justdavis-ansible's Issues

Can't run 'nss_updatedb ldap' due to auth requirements

The LDAP server is configured to require authentication. I've gone back and forth on this, but I think it's probably for the best. However, that means that ldapsearch, nss_updatedb ldap, etc. won't work without a Kerberos ticket:

$ sudo /usr/sbin/nss_updatedb ldap
Failed to enumerate nameservice: Connection reset by peer
passwd... nameservice unavailable.
$ ldapsearch
SASL/GSS-SPNEGO authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
        additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (SPNEGO cannot find mechanisms to negotiate)

The right way to fix this is:

  1. Create a Kerberos principal that Ansible can use when not running against eddings, e.g. ansible.
  2. Use that principal to create a host keytab via kadmin on all workstations.
    • Probably not strictly necessary, but still a good idea.
  3. Use that principal to create an nss_updatedb service keytab on all workstations.
  4. Fix my cron job and other nss_updatedb usage to use that service keytab.

Need to reload/restart slapd when certificates are renewed

Was just running into this:

$ /usr/bin/ldapsearch -H ldaps://justdavis.com -x -b dc=justdavis,dc=com -d 1
ldap_url_parse_ext(ldaps://justdavis.com)
ldap_create
ldap_url_parse_ext(ldaps://justdavis.com:636/??base)
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP justdavis.com:636
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 96.86.32.137:636
ldap_pvt_connect: fd: 4 tm: -1 async: 0
attempting to connect: 
connect success
TLS: peer cert untrusted or revoked (0x402)
TLS: can't connect: (unknown error code).
ldap_err2string
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

Went away as soon as I restarted slapd. I'm pretty sure that it's just that when the LE certs are renewed, slapd needs to reload them.

Need to restart smbd after rebooting

Seems that Samba is coming up before the private ethernet interface, and so isn't listening to it after a reboot. Restarting smbd after each reboot works around the problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.