davidep
(Davide Principi)
December 3, 2016, 1:36pm
21
There can be situations where this is not possible/wanted. I’d leave the wheel in the hands of the system administrator.
Perhaps the answer is in the DNS configuration! Can you provide some details of it? What are the containers IP addresses?
I definitely agree! Can we ask that IP address to someone else? DHCP reservation?
mark_nl
(Mark Verlinde)
December 3, 2016, 2:03pm
22
pagaille:
After having installed the updates (not from the testing repo), then the Samba AD module, then configured it, then installed SOGO, there was something really unexpected : the system detected another LDAP server on the same subnet and decided to use it.
This other LDAP server is the one running on another nethserver running on the same subnet. Why did the installer choose that one and not the locally hosted one ?
Technically the SOGo configuration script does not choose which LDAP server it connects to. It “reads” the URI from the sssd configuration. So if the wrong ldap URI (IP) shows up that was the configuration of SSSD at the time of installing nethserver-sogo. As said before the nethserver-sogo package still has to be improved to reflect changes in the SSSD configuration in sogo.conf.
@davidep , I do not completely understand this.
+for SUBEVENT in $(grep -l -R -F NethServer::SSSD /etc/e-smith/events/actions/ /etc/e-smith/templates/ \
+ | xargs -- rpm -qf --queryformat '%{NAME}-update\n' | sort | uniq); do
+ /sbin/e-smith/signal-event $SUBEVENT || (( ERRORS ++ ))
How do I tell SSSD sogo is a SSSD-client? The doc states there is a “new” command : Create a NethServer::SSSD instance . Is this it?
or ?
_Individual services can link themselves to nethserver-sssd-initkeytabs action in the respective -update event._
thnx
davidep
(Davide Principi)
December 3, 2016, 2:13pm
23
I’d expect in the sogo.conf template we find a code like:
use NethServer::SSSD;
my $c = NethServer::SSSD->new();
...
Thats all nethserver-sssd needs to grep its clients. Please see nethserver-roundcube for a working example:
// under the users main entry, e.g.:
//
// o=root
// ou=people
// uid=user@domain
// mail=contact@contactdomain
//
// So the base_dn would be uid=%fu,ou=people,o=root
// The bind_dn would be the same as based_dn or some super user login.
{
use NethServer::SSSD;
our $sssd = new NethServer::SSSD();
our $host = $sssd->host();
our $ldapURI = $sssd->ldapURI();
our $port = $sssd->port();
our $usetls = 'false';
our $bindDN = $sssd->bindDN();
our $bindPass = $sssd->bindPassword();
our $userDN = $sssd->userDN();
our $quotedBindPass = $bindPass; $quotedBindPass =~ s/\'/\\'/g;
alefattorini
(Alessio Fattorini)
Split this topic
December 12, 2016, 4:04pm
25