[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: UNIX socket (PF_LOCAL) (ITS#1660)



spam4octan@highway.ru wrote:
> 
> Full_Name: Peter A. Savitch
> Version: 2.0.23
> OS: Redhat Linux
> URL:
> Submission from: (NULL) (213.147.48.74)
> 
> ######ISSUE 1
> As of openldap-2.0.23, file servers/slapd/connection.c, line 546, has a
> following typo in connection_destroy(), note the lowercase "ell":
> 
> #ifdef LDAP_PF_lOCAL
> 
> wich prevents slapd from removing it's UNIX socket file.
> 
> it should be replaced with uppercased string
> 
> #ifdef LDAP_PF_LOCAL

I'll check it

> 
> ######ISSUE 2
> Is there any way to create UNIX socket with a user-defined or pre-defined
> permission (i.e. 0777)? As I can see, slapd creates it's ldapi:// socket with
> 0700 regardless of the umask setting. My OS-dependent manpage says that file
> permission on UNIX socket DOES matter.

HEAD code (and 2.1 alpha, I guess) does that.

Pierangelo

-- 
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 |
mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy   |
http://www.aero.polimi.it/~masarati