unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36581: Installing 389-ds-base doesn't appear to result in a working LDAP server
@ 2019-07-10 18:02 Brant Gardner
  2019-07-11  9:06 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: Brant Gardner @ 2019-07-10 18:02 UTC (permalink / raw)
  To: 36581

[-- Attachment #1: Type: text/plain, Size: 1666 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 4631 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#36581: Installing 389-ds-base doesn't appear to result in a working LDAP server
  2019-07-10 18:02 bug#36581: Installing 389-ds-base doesn't appear to result in a working LDAP server Brant Gardner
@ 2019-07-11  9:06 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2019-07-11  9:06 UTC (permalink / raw)
  To: Brant Gardner; +Cc: 36581


Hi Brant,

that’s right.  Installing just 389-ds-base isn’t going to be enough and
the scripts it comes with are less than helpful.

In the Guix System overarching configuration (involving configuration
files, creation of groups and user accounts, starting of daemons, etc)
is done via system services.

I was just about to recommend a certain service … but then realized that
I never actually finished it and the (gnu services ldap) module is only
provided by a file in my personal copy of the Guix repository!

I’ll make finishing this a priority once I’m back from vacation this
weekend.

--
Ricardo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-11  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 18:02 bug#36581: Installing 389-ds-base doesn't appear to result in a working LDAP server Brant Gardner
2019-07-11  9:06 ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).