From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Brant Gardner" Subject: bug#36581: Installing 389-ds-base doesn't appear to result in a working LDAP server Date: Wed, 10 Jul 2019 13:02:18 -0500 Message-ID: <4edfc48b-4e18-43f4-9720-ea58370d0bf4@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=8596c96ca8294260b49bdc056771869a Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33430) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlGvo-0007fI-3s for bug-guix@gnu.org; Wed, 10 Jul 2019 14:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlGvm-0007Is-M4 for bug-guix@gnu.org; Wed, 10 Jul 2019 14:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlGvm-0007Hf-CZ for bug-guix@gnu.org; Wed, 10 Jul 2019 14:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlGvm-0002WY-7L for bug-guix@gnu.org; Wed, 10 Jul 2019 14:03:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:33281) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlGvM-0007bB-H8 for bug-guix@gnu.org; Wed, 10 Jul 2019 14:02:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlGvJ-0006OK-Oh for bug-guix@gnu.org; Wed, 10 Jul 2019 14:02:35 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47675) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hlGvJ-0006FM-7B for bug-guix@gnu.org; Wed, 10 Jul 2019 14:02:33 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 33E6821B42 for ; Wed, 10 Jul 2019 14:02:28 -0400 (EDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 36581@debbugs.gnu.org --8596c96ca8294260b49bdc056771869a Content-Type: text/plain I used the quickstart documentation for all my testing, located here: https://directory.fedoraproject.org/docs/389ds/howto/quickstart.html Initially I ran into trouble because the 'dirsrv' user and group are apparently expected to already exist, so I added this to my config.scm and ran guix system reconfigure: (groups (cons* ;; To support 389-ds-base (user-group (name "dirsrv")) %base-groups)) (users (cons* ...snip... ;; To support 389-ds-base (user-account (name "dirsrv") (comment "LDAP Server User") (group "users") (supplementary-groups '("netdev" "dirsrv")) (home-directory "/home/dirsrv")) %base-user-accounts)) After this, I generated a template config file with: # dscreate create-template > gardner.inf Then I read through the resulting template file and modified only these values: - password - server FQDN - instance name (gardner) - selinux (False) - suffix (dc=gardner,dc=local) Finally I tried to create the new instance with: # dscreate from-file /root/gardner.inf This said "Starting installation...", then paused for about 60 seconds and then said: Error: Failed to start DS, removing incomplete installation... Error: Note that even though it claims to, it did not actually remove the incomplete installation, as trying the same command again results in: Starting installation... Error: Another instance named 'gardner' may already exist Checking the logs, I found only this line in /var/log/debug that seems related: Jul 10 12:49:09 localhost ns-slapd: looking for plugins in '/usr/lib/x86_64-linux-gnu', failed to open directory, error: No such file or directory Thanks for any suggestions, -- Brant Gardner --8596c96ca8294260b49bdc056771869a Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I used the quic= kstart documentation for all my testing, located here: https://= directory.fedoraproject.org/docs/389ds/howto/quickstart.html

Initially I ran into trouble because the 'dirsrv' = user and group are apparently expected to already exist, so I added this= to my config.scm and ran guix system reconfigure:

  (groups (cons*
    &nbs= p;      ;; To support 389-ds-base  &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;
         = ;  (user-group (name "dirsrv"))
   &nb= sp;       %base-groups))
  (users (cons*
   ...snip...
          ;; T= o support 389-ds-base        &nb= sp;           &nb= sp;           &nb= sp;           &nb= sp;           &nb= sp;           &nb= sp;           &nb= sp;           &nb= sp;       
  =         (user-account
&= nbsp;          (name "dirsr= v")
         =   (comment "LDAP Server User")
   &nbs= p;       (group "users")
&nb= sp;          (supplementary= -groups '("netdev" "dirsrv"))
    &nbs= p;      (home-directory "/home/dirsrv"))
          %base-use= r-accounts))

After this, I generated a temp= late config file with:

# dscreate create-te= mplate > gardner.inf

Then I read through= the resulting template file and modified only these values:
- password
- server FQDN
- instance name = (gardner)
- selinux (False)
- suffix (dc=3Dg= ardner,dc=3Dlocal)

Finally I tried to creat= e the new instance with:

# dscreate from-fi= le /root/gardner.inf

This said "Starting in= stallation...", then paused for about 60 seconds and then said:

Error: Failed to start DS, removing incomplete inst= allation...
Error:

Note that = even though it claims to, it did not actually remove the incomplete inst= allation, as trying the same command again results in:
Starting installation...
Error: Another instan= ce named 'gardner' may already exist

Checki= ng the logs, I found only this line in /var/log/debug that seems related= :

Jul 10 12:49:09 localhost ns-slapd: looki= ng for plugins in '/usr/lib/x86_64-linux-gnu', failed to open directory,= error: No such file or directory

Thanks fo= r any suggestions,

--
Brant Gardner


=

--8596c96ca8294260b49bdc056771869a--