Re: [SOGo] Problems changing LDAP port ...
Just to document the changes: To change the default LDAP port: (1) Stop three services: 'slapd,' 'sogo' and 'postfix' (2) Edit three configuration files: '/etc/defaults/slapd,' '/etc/sogo/sogo.conf' and '/etc/postfix/people.ldap' (3) Start three services: 'slapd,' 'sogo' and 'postfix' (4) Test by sending/receiving e-mail I also had to change the port assignment for the Webmin module. Works perfectly! Now, I can continue installing Samba4, etc. Reminder: I am working from a ZEG circa 2010 that's been upgraded to the latest versions. Thanks to Peter (and others) who helped me understand the issues. On 08/28/2013 03:10 AM, Szládovics Péter wrote: Steve, Did you reconfigure the SOGo for new LDAP settings (and also Wemin)? You need it! -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
Steve, Did you reconfigure the SOGo for new LDAP settings (and also Wemin)? You need it! 2013-08-28 00:37 keltezéssel, Steve Ankeny írta: bit of a problem After successfully changing the LDAP Port, the SOGo web interface does not recognize username/password When trying to login @ 'sogo.servername.com/SOGo,' it fails saying Wrong username or password I was able to access the server via Webmin, but it could not browse the LDAP Database. That tells me that changing the port @ '/etc/default/slapd' did not fix the problem across LDAP So, I'm back to the question, How do I change the default port in OpenLDAP before installing Samba4? This question has already answered. You need to reconfigure every service and tool for new ldap port which uses the ldap service - it's general. On 08/27/2013 10:35 AM, Szládovics Péter wrote: 2013-08-27 16:23 keltezéssel, Steve Ankeny írta: Thank you, Peter! You're welcome. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
no, I didn't (it shows how inexperienced I am) ... I'll look there, thanks! On 08/28/2013 03:10 AM, Szládovics Péter wrote: Steve, Did you reconfigure the SOGo for new LDAP settings (and also Wemin)? You need it! 2013-08-28 00:37 keltezéssel, Steve Ankeny írta: bit of a problem After successfully changing the LDAP Port, the SOGo web interface does not recognize username/password When trying to login @ 'sogo.servername.com/SOGo,' it fails saying Wrong username or password I was able to access the server via Webmin, but it could not browse the LDAP Database. That tells me that changing the port @ '/etc/default/slapd' did not fix the problem across LDAP So, I'm back to the question, How do I change the default port in OpenLDAP before installing Samba4? This question has already answered. You need to reconfigure every service and tool for new ldap port which uses the ldap service - it's general. On 08/27/2013 10:35 AM, Szládovics Péter wrote: 2013-08-27 16:23 keltezéssel, Steve Ankeny írta: Thank you, Peter! You're welcome. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
I had not understood that I could edit a file to set a different port? All I've seen recommended is 'sudo slapd -h ...' to change the default port. My 'etc/default/slapd' reads: adam@sogo:~$ cat /etc/default/slapd SLAPD_OPTIONS= SLAPD_SENTINEL_FILE=/etc/ldap/noslapd SLAPD_SERVICES=ldapi:/// ldap:///; SLAPD_PIDFILE= SLAPD_USER=openldap SLAPD_GROUP=openldap SLAPD_CONF= I am presuming I'd add one line at the end to read: SLAPD_PROVIDER=ldapi:// ldap://localhost:10389; Then make sure port 10389 is open on the firewall (perhaps the firewall is the problem) I tried 'sudo slapd -h ldapi:// ldap://localhost:10389' to no avail (it didn't work) On 08/26/2013 07:28 AM, Szládovics Péter wrote: 2013-08-26 11:22 keltezéssel, stev...@cinergymetro.net írta: Is 'sudo slapd -hldap://localhost:10389' correct? What about 'ldaps:' and 'ldapi:?' What else might be keeping 'slpad' from restarting? Thanks. Dear Steve, You didn't change the default slapd port. Try to change it in the /etc/default/slapd. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
2013-08-26 22:13 keltezéssel, Steve Ankeny írta: I had not understood that I could edit a file to set a different port? All I've seen recommended is 'sudo slapd -h ...' to change the default port. My 'etc/default/slapd' reads: adam@sogo:~$ cat /etc/default/slapd SLAPD_OPTIONS= SLAPD_SENTINEL_FILE=/etc/ldap/noslapd SLAPD_SERVICES=ldapi:/// ldap://:10389/; This is what you need! SLAPD_PIDFILE= SLAPD_USER=openldap SLAPD_GROUP=openldap SLAPD_CONF= I am presuming I'd add one line at the end to read: SLAPD_PROVIDER=ldapi:// ldap://localhost:10389; Then make sure port 10389 is open on the firewall (perhaps the firewall is the problem) You don't need it. I tried 'sudo slapd -h ldapi:// ldap://localhost:10389' to no avail (it didn't work) Why did you do that? Forget the 'slapd' binary calling from command line. Do only this following: 1. Stop the slapd service in /etc/init.d or with service command. 2. Modify the command config (above) 3. Start the slapd service -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
Thank you, Peter! (I am presuming that's your given name.) Thank you so much! I find LDAP confusing, and honestly, I've found no reliable HOWTO online. Your directions were explicit and correct, and I truly appreciate the time you took to answer. I will now proceed (when the server is less busy) to install Samba4, provision it and get on with my work. Here's the output showing it was successful: adam@sogo:/etc/default$ sudo service slapd start * Starting OpenLDAP slapd [ OK ] adam@sogo:/etc/default$ sudo netstat -lnptu | grep slapd tcp 0 0 0.0.0.0:10389 0.0.0.0:* LISTEN 753/slapd tcp6 0 0 :::10389:::* LISTEN 753/slapd On 08/27/2013 10:00 AM, Szládovics Péter wrote: 2013-08-26 22:13 keltezéssel, Steve Ankeny írta: I had not understood that I could edit a file to set a different port? All I've seen recommended is 'sudo slapd -h ...' to change the default port. My 'etc/default/slapd' reads: adam@sogo:~$ cat /etc/default/slapd SLAPD_OPTIONS= SLAPD_SENTINEL_FILE=/etc/ldap/noslapd SLAPD_SERVICES=ldapi:/// ldap://:10389/; This is what you need! SLAPD_PIDFILE= SLAPD_USER=openldap SLAPD_GROUP=openldap SLAPD_CONF= I am presuming I'd add one line at the end to read: SLAPD_PROVIDER=ldapi:// ldap://localhost:10389; Then make sure port 10389 is open on the firewall (perhaps the firewall is the problem) You don't need it. I tried 'sudo slapd -h ldapi:// ldap://localhost:10389' to no avail (it didn't work) Why did you do that? Forget the 'slapd' binary calling from command line. Do only this following: 1. Stop the slapd service in /etc/init.d or with service command. 2. Modify the command config (above) 3. Start the slapd service -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
bit of a problem After successfully changing the LDAP Port, the SOGo web interface does not recognize username/password When trying to login @ 'sogo.servername.com/SOGo,' it fails saying Wrong username or password I was able to access the server via Webmin, but it could not browse the LDAP Database. That tells me that changing the port @ '/etc/default/slapd' did not fix the problem across LDAP So, I'm back to the question, How do I change the default port in OpenLDAP before installing Samba4? On 08/27/2013 10:35 AM, Szládovics Péter wrote: 2013-08-27 16:23 keltezéssel, Steve Ankeny írta: Thank you, Peter! You're welcome. -- users@sogo.nu https://inverse.ca/sogo/lists
[SOGo] Problems changing LDAP port ...
I'm trying to perform the prerequisites before installing Samba4 on a functioning ZEG with Cyrus, SOGo 2.0.7 and OpenLDAP (on Ubuntu 12.04.2) Pg. 5 [7] of Native Microsoft Outlook Configuration 2.0.7 states: Note that if you install Samba 4 on a server that is already running a LDAP service, you will have to change to TCP port on which your LDAP server listens to. Samba 4 will use the TCP port 389 and it can't be changed. For example, with OpenLDAP, you can use the -h parameter for slapd to make it listen on an other TCP port. 'slapd' fails to restart after changing the port! adam@sogo:~$ sudo netstat -lnptu | grep slapd tcp 0 0 0.0.0.0:389 0.0.0.0:*LISTEN 1727/slapd tcp6 0 0 :::389 :::*LISTEN 1727/slapd adam@sogo:~$ sudo slapd -h ldap://localhost:10389 adam@sogo:~$ sudo service slapd restart * Stopping OpenLDAP slapd [ OK ] * Starting OpenLDAP slapd [fail] adam@sogo:~$ sudo netstat -lnptu | grep slapd tcp 0 0 0.0.0.0:389 0.0.0.0:*LISTEN 1727/slapd tcp6 0 0 :::389 :::*LISTEN 1727/slapd Is 'sudo slapd -h ldap://localhost:10389' correct? What about 'ldaps:' and 'ldapi:?' What else might be keeping 'slpad' from restarting? Thanks. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Problems changing LDAP port ...
2013-08-26 11:22 keltezéssel, stev...@cinergymetro.net írta: I'm trying to perform the prerequisites before installing Samba4 on a functioning ZEG with Cyrus, SOGo 2.0.7 and OpenLDAP (on Ubuntu 12.04.2) Pg. 5 [7] of Native Microsoft Outlook Configuration 2.0.7 states: Note that if you install Samba 4 on a server that is already running a LDAP service, you will have to change to TCP port on which your LDAP server listens to. Samba 4 will use the TCP port 389 and it can't be changed. For example, with OpenLDAP, you can use the -h parameter for slapd to make it listen on an other TCP port. 'slapd' fails to restart after changing the port! adam@sogo:~$ sudo netstat -lnptu | grep slapd tcp 0 0 0.0.0.0:389 0.0.0.0:*LISTEN 1727/slapd tcp6 0 0 :::389 :::*LISTEN 1727/slapd adam@sogo:~$ sudo slapd -h ldap://localhost:10389 adam@sogo:~$ sudo service slapd restart * Stopping OpenLDAP slapd [ OK ] * Starting OpenLDAP slapd [fail] adam@sogo:~$ sudo netstat -lnptu | grep slapd tcp 0 0 0.0.0.0:389 0.0.0.0:*LISTEN 1727/slapd tcp6 0 0 :::389 :::*LISTEN 1727/slapd Is 'sudo slapd -h ldap://localhost:10389' correct? What about 'ldaps:' and 'ldapi:?' What else might be keeping 'slpad' from restarting? Thanks. Dear Steve, You didn't change the default slapd port. Try to change it in the /etc/default/slapd. -- users@sogo.nu https://inverse.ca/sogo/lists