Changeset 1818 for trunk


Ignore:
Timestamp:
Apr 28, 2011, 7:45:54 PM (12 years ago)
Author:
mitchb
Message:
Move 389-ds's slapd-scripts.socket to /var/run

It turns out that mode 777 directories containing files
that daemons use is... not the most brilliant thing we've
done.  389-ds has finally decided to insist on clobbering
the permissions of /var/run/dirsrv to be less foolish,
but several of our daemons and client programs need to
be able to access the LDAP daemon's socket.  Come visit
it in its new home, conveniently located just two directories
below the root.
Location:
trunk/server
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/execsys/ldapize.pl

    r1798 r1818  
    3737    'Net::LDAP::Filter');
    3838
    39 my $ldap = Net::LDAP->new("ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/");
     39my $ldap = Net::LDAP->new("ldapi://%2fvar%2frun%2fslapd-scripts.socket/");
    4040$mesg = $ldap->bind();
    4141$mesg->code && die $mesg->error;
  • trunk/server/doc/install-ldap

    r1698 r1818  
    2828
    2929# Inside cn=config.  These changes definitely require a restart.
    30 nsslapd-ldapifilepath: /var/run/dirsrv/slapd-scripts.socket
     30nsslapd-ldapifilepath: /var/run/slapd-scripts.socket
    3131nsslapd-ldapilisten: on
    3232nsslapd-syntaxcheck: off
     
    5151- chown fedora-ds:fedora-ds /var/run/dirsrv
    5252- chown fedora-ds /etc/dirsrv/keytab
    53 - chmod 755 /var/run/dirsrv
    5453- /sbin/service dirsrv start
    5554- Use ldapvi -b cn=config to add these indexes (8 of them):
  • trunk/server/fedora/config/etc/httpd/vhosts.d/reify-vhost.py

    r1768 r1818  
    2525import sys
    2626
    27 ll = ldap.initialize("ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/")
     27ll = ldap.initialize("ldapi://%2fvar%2frun%2fslapd-scripts.socket/")
    2828ll.simple_bind_s("", "")
    2929
  • trunk/server/fedora/config/etc/ldap.conf

    r512 r1818  
    2727#uri ldapi://%2fvar%2frun%2fldapi_sock/
    2828# Note: %2f encodes the '/' used as directory separator
    29 uri ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/
     29uri ldapi://%2fvar%2frun%2fslapd-scripts.socket/
    3030
    3131# The LDAP version to use (defaults to 3
  • trunk/server/fedora/config/etc/nslcd.conf

    r1817 r1818  
    131131#map    group  gidNumber        gid
    132132# This comment prevents repeated auto-migration of settings.
    133 uri ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/
     133uri ldapi://%2fvar%2frun%2fslapd-scripts.socket/
    134134base dc=scripts,dc=mit,dc=edu
    135135base   group  ou=Groups,dc=scripts,dc=mit,dc=edu
  • trunk/server/fedora/config/etc/postfix/virtual-alias-domains-ldap.cf

    r1443 r1818  
    1212# version 3 is necessary to use ldapi.
    1313
    14 server_host = ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/
     14server_host = ldapi://%2fvar%2frun%2fslapd-scripts.socket/
    1515search_base = ou=VirtualHosts,dc=scripts,dc=mit,dc=edu
    1616query_filter = (&(objectClass=scriptsVhost)(|(scriptsVhostName=%s)(scriptsVhostAlias=%s))(!(scriptsVhostName=scripts.mit.edu)))
  • trunk/server/fedora/config/etc/postfix/virtual-alias-maps-ldap.cf

    r1443 r1818  
    1313# necessary to use ldapi.
    1414
    15 server_host = ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/
     15server_host = ldapi://%2fvar%2frun%2fslapd-scripts.socket/
    1616search_base = ou=VirtualHosts,dc=scripts,dc=mit,dc=edu
    1717query_filter = (&(objectClass=scriptsVhost)(|(scriptsVhostName=%d)(scriptsVhostAlias=%d))(!(scriptsVhostName=scripts.mit.edu)))
Note: See TracChangeset for help on using the changeset viewer.