Good Morning,
I’m experimenting with upgrading 389DS to 1.3.4.0-21.el7_2 on CentOS 7 (I neglected to note what version I had previously).
`setup-ds-admin.pl —upgrade` can’t connect to the admin server. Oh look, it’s not running! And, to make this more fun, it may not have been running before the upgrade…
This is what I went through, trying to start the Admin Server… I’m chopping the “systemctl restart” and “systemctl status” commands….
``` Jan 02 21:26:34 $HOSTNAME systemd[1]: Starting 389 Administration Server.... Jan 02 21:26:34 $HOSTNAME httpd[1076]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/dirsrv/admin-serv/' for main error log Jan 02 21:26:34 $HOSTNAME httpd[1076]: AH00014: Configuration check failed Jan 02 21:26:34 $HOSTNAME systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Jan 02 21:26:34 $HOSTNAME systemd[1]: Failed to start 389 Administration Server.. Jan 02 21:26:34 $HOSTNAME systemd[1]: Unit dirsrv-admin.service entered failed state. Jan 02 21:26:34 $HOSTNAME systemd[1]: dirsrv-admin.service failed. ```
Well, that’s easy to fix…
``` [root@$HOSTNAME ~]# mkdir -p /var/log/dirsrv/admin-serv/ ```
Try again…
``` Jan 02 21:27:22 $HOSTNAME systemd[1]: Starting 389 Administration Server.... Jan 02 21:27:22 $HOSTNAME httpd[1204]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:9830 Jan 02 21:27:22 $HOSTNAME httpd[1204]: no listening sockets available, shutting down Jan 02 21:27:22 $HOSTNAME httpd[1204]: AH00015: Unable to open logs Jan 02 21:27:22 $HOSTNAME systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Jan 02 21:27:22 $HOSTNAME systemd[1]: Failed to start 389 Administration Server.. Jan 02 21:27:22 $HOSTNAME systemd[1]: Unit dirsrv-admin.service entered failed state. Jan 02 21:27:22 $HOSTNAME systemd[1]: dirsrv-admin.service failed. ```
Slightly more challenging, but SELinux is “enforcing,” so let’s try fixing that…
``` [root@$HOSTNAME ~]# semanage port -a -t http_port_t -p tcp 9830 ```
That seems to have fixed the binding port problem, because systemd just notes a failure to start, and I had to go look in the error log...
``` Jan 02 21:32:12 $HOSTNAME systemd[1]: Starting 389 Administration Server.... Jan 02 21:32:12 $HOSTNAME systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Jan 02 21:32:12 $HOSTNAME systemd[1]: Failed to start 389 Administration Server.. Jan 02 21:32:12 $HOSTNAME systemd[1]: Unit dirsrv-admin.service entered failed state. Jan 02 21:32:12 $HOSTNAME systemd[1]: dirsrv-admin.service failed.
[root@$HOSTNAME ~]# cat /var/log/dirsrv/admin-serv/error [Sat Jan 02 21:32:12.628586 2016] [core:notice] [pid 1497:tid $THREAD] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Sat Jan 02 21:32:12.629960 2016] [:warn] [pid 1497:tid $THREAD] NSSSessionCacheTimeout is deprecated. Ignoring. [Sat Jan 02 21:32:12.630027 2016] [:crit] [pid 1497:tid $THREAD] do_admserv_post_config(): unable to create AdmldapInfo AH00016: Configuration Failed ```
And here, Google fails me. Is this fixable short of bailing out and reinstalling 389DS from scratch?
(Also, would you like a bug on the missing log directory? If so, where would you like me to write it? Would you like an Enhancement Request to check SELinux and offer to open port 9830 to httpd?)
Thanks! David
--
David - Offbeat dafydd - Online http://pgp.mit.edu/
----5----1----5----2----5----3----5----4----5----5----5----6----5----7--
Pavlov walks into a bar. The phone rings and he says,
"Damn! I forgot to feed the dog!"
[root@$HOSTNAME ~]# cat /var/log/dirsrv/admin-serv/error [Sat Jan 02 21:32:12.628586 2016] [core:notice] [pid 1497:tid $THREAD] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Sat Jan 02 21:32:12.629960 2016] [:warn] [pid 1497:tid $THREAD] NSSSessionCacheTimeout is deprecated. Ignoring. [Sat Jan 02 21:32:12.630027 2016] [:crit] [pid 1497:tid $THREAD] do_admserv_post_config(): unable to create AdmldapInfo AH00016: Configuration Failed
And here, Google fails me. Is this fixable short of bailing out and reinstalling 389DS from scratch? (Also, would you like a bug on the missing log directory? If so, where would you like me to write it? Would you like an Enhancement Request to check SELinux and offer to open port 9830 to httpd?)
Looking at the code:
info = admldapBuildInfo(configdir, &error);
if (info) { } else { ap_log_error(APLOG_MARK, APLOG_CRIT, 0, base_server, "do_admserv_post_config(): unable to create AdmldapInfo"); return DONE; }
If we look at admldapBuildInfo, there are some docs about this:
http://directory.fedoraproject.org/docs/389ds/administration/adminserve r.html#adminutil---admldapbuildinfoadmldapbuildinfossl
You may want to check your adm.conf and see if that is configured properly.
On 01/02/2016 11:06 PM, David Barr wrote:
Good Morning,
I’m experimenting with upgrading 389DS to 1.3.4.0-21.el7_2 on CentOS 7 (I neglected to note what version I had previously).
`setup-ds-admin.pl —upgrade` can’t connect to the admin server. Oh look, it’s not running! And, to make this more fun, it may not have been running before the upgrade…
This is what I went through, trying to start the Admin Server… I’m chopping the “systemctl restart” and “systemctl status” commands….
Jan 02 21:26:34 $HOSTNAME systemd[1]: Starting 389 Administration Server.... Jan 02 21:26:34 $HOSTNAME httpd[1076]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/dirsrv/admin-serv/' for main error log Jan 02 21:26:34 $HOSTNAME httpd[1076]: AH00014: Configuration check failed Jan 02 21:26:34 $HOSTNAME systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Jan 02 21:26:34 $HOSTNAME systemd[1]: Failed to start 389 Administration Server.. Jan 02 21:26:34 $HOSTNAME systemd[1]: Unit dirsrv-admin.service entered failed state. Jan 02 21:26:34 $HOSTNAME systemd[1]: dirsrv-admin.service failed.Well, that’s easy to fix…
[root@$HOSTNAME ~]# mkdir -p /var/log/dirsrv/admin-serv/Try again…
Jan 02 21:27:22 $HOSTNAME systemd[1]: Starting 389 Administration Server.... Jan 02 21:27:22 $HOSTNAME httpd[1204]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:9830 Jan 02 21:27:22 $HOSTNAME httpd[1204]: no listening sockets available, shutting down Jan 02 21:27:22 $HOSTNAME httpd[1204]: AH00015: Unable to open logs Jan 02 21:27:22 $HOSTNAME systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Jan 02 21:27:22 $HOSTNAME systemd[1]: Failed to start 389 Administration Server.. Jan 02 21:27:22 $HOSTNAME systemd[1]: Unit dirsrv-admin.service entered failed state. Jan 02 21:27:22 $HOSTNAME systemd[1]: dirsrv-admin.service failed.Slightly more challenging, but SELinux is “enforcing,” so let’s try fixing that…
[root@$HOSTNAME ~]# semanage port -a -t http_port_t -p tcp 9830That seems to have fixed the binding port problem, because systemd just notes a failure to start, and I had to go look in the error log...
Jan 02 21:32:12 $HOSTNAME systemd[1]: Starting 389 Administration Server.... Jan 02 21:32:12 $HOSTNAME systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Jan 02 21:32:12 $HOSTNAME systemd[1]: Failed to start 389 Administration Server.. Jan 02 21:32:12 $HOSTNAME systemd[1]: Unit dirsrv-admin.service entered failed state. Jan 02 21:32:12 $HOSTNAME systemd[1]: dirsrv-admin.service failed. [root@$HOSTNAME ~]# cat /var/log/dirsrv/admin-serv/error [Sat Jan 02 21:32:12.628586 2016] [core:notice] [pid 1497:tid $THREAD] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Sat Jan 02 21:32:12.629960 2016] [:warn] [pid 1497:tid $THREAD] NSSSessionCacheTimeout is deprecated. Ignoring. [Sat Jan 02 21:32:12.630027 2016] [:crit] [pid 1497:tid $THREAD] do_admserv_post_config(): unable to create AdmldapInfo AH00016: Configuration FailedAnd here, Google fails me. Is this fixable short of bailing out and reinstalling 389DS from scratch?
(Also, would you like a bug on the missing log directory? If so, where would you like me to write it? Would you like an Enhancement Request to check SELinux and offer to open port 9830 to httpd?)
We'll need to know what platform/version you are upgrading from, because there is not supposed to be a missing log directory, and the SELinux labels are already supposed to be provided. In order for us to fix this issue, we need to know how to reproduce it.
Thanks! David
--
David - Offbeat dafydd - Online http://pgp.mit.edu/
----5----1----5----2----5----3----5----4----5----5----5----6----5----7--
Pavlov walks into a bar. The phone rings and he says,
"Damn! I forgot to feed the dog!"
-- 389 users mailing list 389-users@%(host_name)s http://lists.fedoraproject.org/admin/lists/389-users@lists.fedoraproject.org
On Jan 4, 2016, at 07:53, Rich Megginson rmeggins@redhat.com wrote:
We'll need to know what platform/version you are upgrading from, because there is not supposed to be a missing log directory, and the SELinux labels are already supposed to be provided. In order for us to fix this issue, we need to know how to reproduce it.
I’m not going to be able to figure out the previous version, but it turns out it doesn’t matter. I have a “Blow It Away And Start Over” script[1], and going through that process has been illuminating. The delete and install section for CentOS 7 is relevant for the two possible bug write ups:
``` (case statement separating CentOS 6 and CentOS 7) 7) systemctl stop dirsrv.target systemctl stop dirsrv-admin
yum -y remove \ 389-ds-base \ 389-ds-base-libs \ 389-admin \ 389-adminutil
selinuxenabled \ && semanage port \ --delete \ --proto tcp \ 9830
rm -rf /etc/dirsrv \ /usr/lib64/dirsrv \ /var/lib/dirsrv \ /var/log/dirsrv \ /var/run/dirsrv
yum -y install \ 389-ds-base \ 389-ds-base-libs \ 389-admin \ 389-adminutil
if [ ! -d /var/log/dirsrv/admin-serv ] then mkdir -p /var/log/dirsrv/admin-serv fi
# Open the port for the httpd running the admin server. selinuxenabled \ && semanage port \ --add \ --type http_port_t \ --proto tcp \ 9830 ;; esac
/usr/sbin/setup-ds-admin.pl --file=${df_389ds_setup} --silent ```
When I run the script with `set -x`, I see the test for the absence of the admin-serv log directory return true and the directory gets created. Also, the `semanage port —add` returns without error, particularly without the error telling me that port 9830 has already been added. I have not tried the directory and semanage tests *after* setup-ds-admin.pl. If the directory and the port setup are handled in the script, I’m just catching the changes early.
Now, on to my original problem, which still appears. First, some `cn=config` setting changes in my “BIAASO" script:
``` dn: cn=config changetype: modify replace: passwordStorageScheme passwordStorageScheme: SSHA256 - replace: nsslapd-security nsslapd-security: on - replace: nsslapd-ssl-check-hostname nsslapd-ssl-check-hostname: off - replace: nsslapd-certdir nsslapd-certdir: ${d_nssdb} - replace: nsslapd-allow-anonymous-access nsslapd-allow-anonymous-access: off - replace: nsslapd-require-secure-binds nsslapd-require-secure-binds: on - replace: nsslapd-listenhost nsslapd-listenhost: 127.0.0.1 - replace: nsslapd-securelistenhost nsslapd-securelistenhost: $(hostname -f) ```
So, I edit `/etc/dirsrv/admin-serv/adm.conf` to change `ldapurl: ldaps://$(hostname -f):636/o=NetscapeRoot`.
Now, I can get to http://localhost:9830, and log in with the admin user and password. I click through to get to the “Start Config DS” button. Once I click on that, I get a “StartConfigDS Error, your request could not be fulfilled.” And, my slapd access log shows this (with some obfuscation):
``` [04/Jan/2016:19:15:53 -0800] conn=6 fd=65 slot=65 SSL connection from ${correct_ip} to ${correct_ip} [04/Jan/2016:19:15:53 -0800] conn=6 TLS1.2 256-bit AES [04/Jan/2016:19:15:53 -0800] conn=6 op=0 BIND dn="cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" method=128 version=3 [04/Jan/2016:19:15:53 -0800] conn=6 op=0 RESULT err=48 tag=97 nentries=0 etime=0 [04/Jan/2016:19:15:53 -0800] conn=6 op=1 UNPROCESSED OPERATION - Anonymous access not allowed [04/Jan/2016:19:15:53 -0800] conn=6 op=1 RESULT err=48 tag=101 nentries=0 etime=0 [04/Jan/2016:19:15:53 -0800] conn=6 op=2 UNBIND [04/Jan/2016:19:15:53 -0800] conn=6 op=2 fd=65 closed - U1 ```
Now, the contents of `adm.conf`, again with some obfuscation:
``` # cat /etc/dirsrv/admin-serv/adm.conf AdminDomain: $(hostname -d) sysuser: nobody isie: cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot SuiteSpotGroup: nobody sysgroup: nobody userdn: uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot ldapStart: /usr/lib64/dirsrv/slapd-${instance}/start-slapd ldapurl: ldaps://$(hostname -f):636/o=NetscapeRoot SuiteSpotUserID: nobody sie: cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot ```
So, my questions at this point:
- Why is the `sie` value being used as the BIND DN, and not the `userdn` value? - How do I provide a password to `cn=admin-serv-$(hostname -s)`? Is it the same password as the admin user? - Or, how do I tell the Admin Server to use the `userdn` and (presumably) the password in `admpw`? - More generally, if I’m going to require that every BIND be authenticated, how do I set up the `adm.conf` file to specify that? (Did I miss a wiki page, somewhere? Wouldn’t surprise me…)
Thanks! David
[1]: https://github.com/dafydd2277/systemAdmin/blob/master/ldap/99_389dsCleanInst...
--
David - Offbeat dafydd - Online http://pgp.mit.edu/
----5----1----5----2----5----3----5----4----5----5----5----6----5----7--
Pavlov walks into a bar. The phone rings and he says,
"Damn! I forgot to feed the dog!"
On 01/04/2016 08:50 PM, David Barr wrote:
On Jan 4, 2016, at 07:53, Rich Megginson rmeggins@redhat.com wrote:
We'll need to know what platform/version you are upgrading from, because there is not supposed to be a missing log directory, and the SELinux labels are already supposed to be provided. In order for us to fix this issue, we need to know how to reproduce it.
I’m not going to be able to figure out the previous version, but it turns out it doesn’t matter. I have a “Blow It Away And Start Over” script[1], and going through that process has been illuminating. The delete and install section for CentOS 7 is relevant for the two possible bug write ups:
(case statement separating CentOS 6 and CentOS 7) 7) systemctl stop dirsrv.target systemctl stop dirsrv-admin yum -y remove \ 389-ds-base \ 389-ds-base-libs \ 389-admin \ 389-adminutil selinuxenabled \ && semanage port \ --delete \ --proto tcp \ 9830 rm -rf /etc/dirsrv \ /usr/lib64/dirsrv \ /var/lib/dirsrv \ /var/log/dirsrv \ /var/run/dirsrv yum -y install \ 389-ds-base \ 389-ds-base-libs \ 389-admin \ 389-adminutil if [ ! -d /var/log/dirsrv/admin-serv ] then mkdir -p /var/log/dirsrv/admin-serv fi # Open the port for the httpd running the admin server. selinuxenabled \ && semanage port \ --add \ --type http_port_t \ --proto tcp \ 9830 ;; esac /usr/sbin/setup-ds-admin.pl --file=${df_389ds_setup} --silentWhen I run the script with `set -x`, I see the test for the absence of the admin-serv log directory return true and the directory gets created. Also, the `semanage port —add` returns without error, particularly without the error telling me that port 9830 has already been added. I have not tried the directory and semanage tests *after* setup-ds-admin.pl. If the directory and the port setup are handled in the script, I’m just catching the changes early.
OK. So it is possible that the problem is that we don't clearly document how to blow everything away and start over from scratch. The setup-ds-admin.pl --force is supposed to do that, but perhaps it has a bug.
Now, on to my original problem, which still appears. First, some `cn=config` setting changes in my “BIAASO" script:
dn: cn=config changetype: modify replace: passwordStorageScheme passwordStorageScheme: SSHA256 - replace: nsslapd-security nsslapd-security: on - replace: nsslapd-ssl-check-hostname nsslapd-ssl-check-hostname: off - replace: nsslapd-certdir nsslapd-certdir: ${d_nssdb} - replace: nsslapd-allow-anonymous-access nsslapd-allow-anonymous-access: off - replace: nsslapd-require-secure-binds nsslapd-require-secure-binds: on - replace: nsslapd-listenhost nsslapd-listenhost: 127.0.0.1 - replace: nsslapd-securelistenhost nsslapd-securelistenhost: $(hostname -f)
Does it work if you enable anonymous access and/or disable secure binds?
So, I edit `/etc/dirsrv/admin-serv/adm.conf` to change `ldapurl: ldaps://$(hostname -f):636/o=NetscapeRoot`.
Now, I can get to http://localhost:9830, and log in with the admin user and password. I click through to get to the “Start Config DS” button. Once I click on that, I get a “StartConfigDS Error, your request could not be fulfilled.” And, my slapd access log shows this (with some obfuscation):
[04/Jan/2016:19:15:53 -0800] conn=6 fd=65 slot=65 SSL connection from ${correct_ip} to ${correct_ip} [04/Jan/2016:19:15:53 -0800] conn=6 TLS1.2 256-bit AES [04/Jan/2016:19:15:53 -0800] conn=6 op=0 BIND dn="cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" method=128 version=3 [04/Jan/2016:19:15:53 -0800] conn=6 op=0 RESULT err=48 tag=97 nentries=0 etime=0 [04/Jan/2016:19:15:53 -0800] conn=6 op=1 UNPROCESSED OPERATION - Anonymous access not allowed [04/Jan/2016:19:15:53 -0800] conn=6 op=1 RESULT err=48 tag=101 nentries=0 etime=0 [04/Jan/2016:19:15:53 -0800] conn=6 op=2 UNBIND [04/Jan/2016:19:15:53 -0800] conn=6 op=2 fd=65 closed - U1Now, the contents of `adm.conf`, again with some obfuscation:
# cat /etc/dirsrv/admin-serv/adm.conf AdminDomain: $(hostname -d) sysuser: nobody isie: cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot SuiteSpotGroup: nobody sysgroup: nobody userdn: uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot ldapStart: /usr/lib64/dirsrv/slapd-${instance}/start-slapd ldapurl: ldaps://$(hostname -f):636/o=NetscapeRoot SuiteSpotUserID: nobody sie: cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRootSo, my questions at this point:
- Why is the `sie` value being used as the BIND DN, and not the `userdn` value?
When you login with your username and password, it needs to lookup what is the BIND DN corresponding to the user name. In order to do that, it needs to bind to perform a search. The sie is used for historical reasons.
- How do I provide a password to `cn=admin-serv-$(hostname -s)`?
Not sure. Does one of the devs know?
Is it the same password as the admin user?
No.
- Or, how do I tell the Admin Server to use the `userdn` and (presumably) the password in `admpw`?
The password in admpw is hashed, so you can't directly use that. That password is used for "fallback" auth when LDAP is down and the admin server has to fallback to local password auth.
- More generally, if I’m going to require that every BIND be authenticated, how do I set up the `adm.conf` file to specify that? (Did I miss a wiki page, somewhere? Wouldn’t surprise me…)
Not sure. Anyone?
Thanks! David
--
David - Offbeat dafydd - Online http://pgp.mit.edu/
----5----1----5----2----5----3----5----4----5----5----5----6----5----7--
Pavlov walks into a bar. The phone rings and he says,
"Damn! I forgot to feed the dog!"
-- 389 users mailing list 389-users@%(host_name)s http://lists.fedoraproject.org/admin/lists/389-users@lists.fedoraproject.org
I’m experimenting with upgrading 389DS to 1.3.4.0-21.el7_2 on CentOS
7 (I neglected to note what version I had previously).
Could you also tell us the version of the 389-admin and adminutil? rpm -q 389-admin 389-adminutil
There is a known issue that anonymous binds are necessary when the admin server is registered. https://fedorahosted.org/389/ticket/48213 Ticket #48213 https://fedorahosted.org/389/ticket/48213 - Admin server registration requires anonymous binds
Thanks.
On 01/05/2016 07:30 AM, Rich Megginson wrote:
On 01/04/2016 08:50 PM, David Barr wrote:
On Jan 4, 2016, at 07:53, Rich Megginsonrmeggins@redhat.com wrote:
We'll need to know what platform/version you are upgrading from, because there is not supposed to be a missing log directory, and the SELinux labels are already supposed to be provided. In order for us to fix this issue, we need to know how to reproduce it.
I’m not going to be able to figure out the previous version, but it turns out it doesn’t matter. I have a “Blow It Away And Start Over” script[1], and going through that process has been illuminating. The delete and install section for CentOS 7 is relevant for the two possible bug write ups:
(case statement separating CentOS 6 and CentOS 7) 7) systemctl stop dirsrv.target systemctl stop dirsrv-admin yum -y remove \ 389-ds-base \ 389-ds-base-libs \ 389-admin \ 389-adminutil selinuxenabled \ && semanage port \ --delete \ --proto tcp \ 9830 rm -rf /etc/dirsrv \ /usr/lib64/dirsrv \ /var/lib/dirsrv \ /var/log/dirsrv \ /var/run/dirsrv yum -y install \ 389-ds-base \ 389-ds-base-libs \ 389-admin \ 389-adminutil if [ ! -d /var/log/dirsrv/admin-serv ] then mkdir -p /var/log/dirsrv/admin-serv fi # Open the port for the httpd running the admin server. selinuxenabled \ && semanage port \ --add \ --type http_port_t \ --proto tcp \ 9830 ;; esac /usr/sbin/setup-ds-admin.pl --file=${df_389ds_setup} --silentWhen I run the script with `set -x`, I see the test for the absence of the admin-serv log directory return true and the directory gets created. Also, the `semanage port —add` returns without error, particularly without the error telling me that port 9830 has already been added. I have not tried the directory and semanage tests *after* setup-ds-admin.pl. If the directory and the port setup are handled in the script, I’m just catching the changes early.
OK. So it is possible that the problem is that we don't clearly document how to blow everything away and start over from scratch. The setup-ds-admin.pl --force is supposed to do that, but perhaps it has a bug.
Now, on to my original problem, which still appears. First, some `cn=config` setting changes in my “BIAASO" script:
dn: cn=config changetype: modify replace: passwordStorageScheme passwordStorageScheme: SSHA256 - replace: nsslapd-security nsslapd-security: on - replace: nsslapd-ssl-check-hostname nsslapd-ssl-check-hostname: off - replace: nsslapd-certdir nsslapd-certdir: ${d_nssdb} - replace: nsslapd-allow-anonymous-access nsslapd-allow-anonymous-access: off - replace: nsslapd-require-secure-binds nsslapd-require-secure-binds: on - replace: nsslapd-listenhost nsslapd-listenhost: 127.0.0.1 - replace: nsslapd-securelistenhost nsslapd-securelistenhost: $(hostname -f)Does it work if you enable anonymous access and/or disable secure binds?
So, I edit `/etc/dirsrv/admin-serv/adm.conf` to change `ldapurl:ldaps://$(hostname -f):636/o=NetscapeRoot`.
Now, I can get tohttp://localhost:9830, and log in with the admin user and password. I click through to get to the “Start Config DS” button. Once I click on that, I get a “StartConfigDS Error, your request could not be fulfilled.” And, my slapd access log shows this (with some obfuscation):
[04/Jan/2016:19:15:53 -0800] conn=6 fd=65 slot=65 SSL connection from ${correct_ip} to ${correct_ip} [04/Jan/2016:19:15:53 -0800] conn=6 TLS1.2 256-bit AES [04/Jan/2016:19:15:53 -0800] conn=6 op=0 BIND dn="cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" method=128 version=3 [04/Jan/2016:19:15:53 -0800] conn=6 op=0 RESULT err=48 tag=97 nentries=0 etime=0 [04/Jan/2016:19:15:53 -0800] conn=6 op=1 UNPROCESSED OPERATION - Anonymous access not allowed [04/Jan/2016:19:15:53 -0800] conn=6 op=1 RESULT err=48 tag=101 nentries=0 etime=0 [04/Jan/2016:19:15:53 -0800] conn=6 op=2 UNBIND [04/Jan/2016:19:15:53 -0800] conn=6 op=2 fd=65 closed - U1Now, the contents of `adm.conf`, again with some obfuscation:
# cat /etc/dirsrv/admin-serv/adm.conf AdminDomain: $(hostname -d) sysuser: nobody isie: cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot SuiteSpotGroup: nobody sysgroup: nobody userdn: uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot ldapStart: /usr/lib64/dirsrv/slapd-${instance}/start-slapd ldapurl:ldaps://$(hostname -f):636/o=NetscapeRoot SuiteSpotUserID: nobody sie: cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRootSo, my questions at this point:
- Why is the `sie` value being used as the BIND DN, and not the `userdn` value?
When you login with your username and password, it needs to lookup what is the BIND DN corresponding to the user name. In order to do that, it needs to bind to perform a search. The sie is used for historical reasons.
- How do I provide a password to `cn=admin-serv-$(hostname -s)`?
Not sure. Does one of the devs know?
Is it the same password as the admin user?
No.
- Or, how do I tell the Admin Server to use the `userdn` and (presumably) the password in `admpw`?
The password in admpw is hashed, so you can't directly use that. That password is used for "fallback" auth when LDAP is down and the admin server has to fallback to local password auth.
- More generally, if I’m going to require that every BIND be authenticated, how do I set up the `adm.conf` file to specify that? (Did I miss a wiki page, somewhere? Wouldn’t surprise me…)
Not sure. Anyone?
Thanks! David
--
David - Offbeat dafydd - Online http://pgp.mit.edu/
----5----1----5----2----5----3----5----4----5----5----5----6----5----7--
Pavlov walks into a bar. The phone rings and he says,
"Damn! I forgot to feed the dog!"
-- 389 users mailing list 389-users@%(host_name)s http://lists.fedoraproject.org/admin/lists/389-users@lists.fedoraproject.org
-- 389 users mailing list 389-users@%(host_name)s http://lists.fedoraproject.org/admin/lists/389-users@lists.fedoraproject.org
On Jan 5, 2016, at 10:57, Noriko Hosoi nhosoi@redhat.com wrote:
Could you also tell us the version of the 389-admin and adminutil? rpm -q 389-admin 389-adminutil
Installed Packages 389-admin.x86_64 1.1.38-1.el7 @epel 389-adminutil.x86_64 1.1.21-2.el7 @epel 389-ds-base.x86_64 1.3.4.0-21.el7_2 @updates 389-ds-base-libs.x86_64 1.3.4.0-21.el7_2 @updates
On Jan 5, 2016, at 07:30, Rich Megginson rmeggins@redhat.com wrote:
OK. So it is possible that the problem is that we don't clearly document how to blow everything away and start over from scratch. The setup-ds-admin.pl --force is supposed to do that, but perhaps it has a bug.
Honestly, I hadn’t looked. I just figured if I were going to blow away an installation I mostly didn’t care about anyway, I may as well do a thorough job of it... ;-)
Does it work if you enable anonymous access and/or disable secure binds?
``` root# ldapmodify blah blah blah <<EOMODIFY dn: cn=config changetype: modify replace: nsslapd-allow-anonymous-access nsslapd-allow-anonymous-access: on EOMODIFY
root# systemctl restart dirsrv@${instance} ```
Click the “StartConfigDS” button on the web page and get the same error. I get nothing out of slapd-${instance}/errors log file, and this out of the slapd-${instance}/access log:
``` [05/Jan/2016:19:31:07 -0800] conn=1 fd=64 slot=64 SSL connection from ${correct_ip} to ${correct_ip} [05/Jan/2016:19:31:08 -0800] conn=1 TLS1.2 256-bit AES [05/Jan/2016:19:31:08 -0800] conn=1 op=0 BIND dn="cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" method=128 version=3 [05/Jan/2016:19:31:08 -0800] conn=1 op=0 RESULT err=53 tag=97 nentries=0 etime=1 [05/Jan/2016:19:31:08 -0800] conn=1 op=1 SRCH base="cn=configuration,cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" scope=0 filter="(objectClass=nsDirectoryInfo)" attrs=ALL [05/Jan/2016:19:31:08 -0800] conn=1 op=1 RESULT err=0 tag=101 nentries=0 etime=0 [05/Jan/2016:19:31:08 -0800] conn=1 op=2 UNBIND [05/Jan/2016:19:31:08 -0800] conn=1 op=2 fd=64 closed - U1 [05/Jan/2016:19:31:08 -0800] conn=2 fd=65 slot=65 SSL connection from ${correct_ip} to ${correct_ip} [05/Jan/2016:19:31:08 -0800] conn=2 TLS1.2 256-bit AES [05/Jan/2016:19:31:08 -0800] conn=2 op=0 BIND dn="cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" method=128 version=3 [05/Jan/2016:19:31:08 -0800] conn=2 op=0 RESULT err=53 tag=97 nentries=0 etime=0 [05/Jan/2016:19:31:08 -0800] conn=2 op=1 SRCH base="cn=configuration,cn=admin-serv-$(hostname -s),cn=389 Administration Server,cn=Server Group,cn=$(hostname -f),ou=$(hostname -d),o=NetscapeRoot" scope=0 filter="(objectClass=nsDirectoryInfo)" attrs=ALL [05/Jan/2016:19:31:08 -0800] conn=2 op=1 RESULT err=0 tag=101 nentries=0 etime=0 [05/Jan/2016:19:31:08 -0800] conn=2 op=2 UNBIND [05/Jan/2016:19:31:08 -0800] conn=2 op=2 fd=65 closed - U1 ```
RESULT err=53 is LDAP_UNWILLING_TO_PERFORM on the BIND[1]? But it still accepts and runs (err=0) the SRCH, returning an empty result (nentries=0)? The secure connection portion seems fine to me, but I can try un-setting that if someone thinks it will advance the troubleshooting.
Thanks! David
[1]: http://wiki.servicenow.com/index.php?title=LDAP_Error_Codes
--
David - Offbeat dafydd - Online http://pgp.mit.edu/
----5----1----5----2----5----3----5----4----5----5----5----6----5----7--
Pavlov walks into a bar. The phone rings and he says,
"Damn! I forgot to feed the dog!"
389-users@lists.fedoraproject.org