Nas
(Artem Fedai)
February 14, 2016, 4:28pm
2
Hi, only by making changes to config files:
/* LDAP authentication example */
//SOGoUserSources = (
// {
// type = ldap;
// CNFieldName = cn;
// UIDFieldName = uid;
// IDFieldName = uid; // first field of the DN for direct binds
// bindFields = (uid, mail); // array of fields to use for indirect binds
// baseDN = "ou=users,dc=acme,dc=com";
// bindDN = "uid=sogo,ou=users,dc=acme,dc=com";
// bindPassword = qwerty;
// canAuthenticate = YES;
// displayName = "Shared Addresses";
// hostname = ldap://127.0.0.1:389;
// id = public;
// isAddressBook = YES;
// }
//);
GG_jr
(Gabriel GHEORGHIU)
February 14, 2016, 4:42pm
3
Hi Nas,
There are two places where I found configuration files for SOGo.
I have tried to make a custom template for 05general_preferences , inserting this line:
$S{SOGoForceExternalLoginWithEmail} = ‘YES’;
after this line:
$S{SOGoMailingMechanism} = ‘smtp’;
without success.
More than likely I’m wrong. Where?
EDIT
I made a custom template in Zentyal with this and it’s working.
1 Like
Nas
(Artem Fedai)
February 14, 2016, 5:22pm
4
You need to edit this file 20user_source_ldap
and input mail instead of uid
now we authorize by the uid
Sorry, have no time to test it today.
1 Like
Nas
(Artem Fedai)
February 15, 2016, 8:03am
6
@GG_jr
How is your going?
I came back from night shift
GG_jr
(Gabriel GHEORGHIU)
February 15, 2016, 1:11pm
7
Hi Artem,
Unfortunately nothing.
This morning at 04:00 I start a business trip for 3 or 4 days and last night I slept early.
Maybe you have time to find the solution. Anyway, you know how to do this, better than me!
TIA,
Gabriel GHEORGHIU
Nas
(Artem Fedai)
February 15, 2016, 2:53pm
8
@GG_jr
Mini HOW-TO :
mkdir -p /etc/e-smith/templates-custom/sogo-config/
cp -p /etc/e-smith/templates/sogo-config/05general_preferences/etc/e-smith/templates-custom/sogo-config/05general_preferences
Edit
vi /etc/e-smith/templates-custom/sogo-config/05general_preferences add this line:
$S{SOGoForwardEnabled} = 'YES';
+ $S{SOGoForceExternalLoginWithEmail} = 'YES';
cp -p /etc/e-smith/templates/sogo-config/20user_source_ldap /etc/e-smith/templates-custom/sogo-config/20user_source_ldap
Edit this file :
vi /etc/e-smith/templates-custom/sogo-config/20user_source_ldap
IDFieldName = mail;
UIDFieldName = uid;
bindFields = (mail);
Finally run:
signal-event nethserver-sogo-update
GG_jr
(Gabriel GHEORGHIU)
February 15, 2016, 3:11pm
9
Hi Nas,
Thank you for your effort!
If I will be not so tired, I will try in this evening from the hotel.
Kind regards,
Gabriel GHEORGHIU
GG_jr
(Gabriel GHEORGHIU)
February 15, 2016, 9:29pm
10
Nas:
Mini HOW-TO :
mkdir -p /etc/e-smith/templates-custom/sogo-config/
cp -p /etc/e-smith/templates/sogo-config/05general_preferences/etc/e-smith/templates-custom/sogo-config/05general_preferences
Edit vi /etc/e-smith/templates-custom/sogo-config/05general_preferences add this line:
$S{SOGoForwardEnabled} = ‘YES’;
$S{SOGoForceExternalLoginWithEmail} = ‘YES’;
cp -p /etc/e-smith/templates/sogo-config/20user_source_ldap /etc/e-smith/templates-custom/sogo-config/20user_source_ldap
Edit this file :
vi /etc/e-smith/templates-custom/sogo-config/20user_source_ldap
IDFieldName = mail;
UIDFieldName = uid;
bindFields = (mail);
Finally run:
signal-event nethserver-sogo-update
Hi Nas,
I followed your instructions and I made the changes.
Now, I can login in SOGo only with email account, but:
The SOGo Webmail is loading very slow.
After loading, I can’t see the folders and of course, the emails.
I can write and send emails.
No observable issues with Address Book and Calendar.
BR,
Gabriel
Nas
(Artem Fedai)
February 15, 2016, 9:31pm
11
Please restart the httpd service.
GG_jr
(Gabriel GHEORGHIU)
February 15, 2016, 9:40pm
12
I also rebooted the server.
The same thing.
Nas
(Artem Fedai)
February 15, 2016, 9:41pm
13
Ok please delete
bindFields = (mail);
run
signal-event nethserver-sogo-update
GG_jr
(Gabriel GHEORGHIU)
February 15, 2016, 9:47pm
14
Wrong username or password. (SOGo 2.3.0)
Nas
(Artem Fedai)
February 16, 2016, 1:08am
15
Some additional fields were required + version of SOGO was updated to 2.3.8.
Another issue is in Multidomain separation in Address Book.
http://sogo.nu/bugs/view.php?id=1001
1 Like
GG_jr
(Gabriel GHEORGHIU)
February 17, 2016, 7:31am
16
Solved by @Nas ; Thank you Nas!
Mini How-To:
mkdir -p /etc/e-smith/templates-custom/sogo-config/
cp -p /etc/e-smith/templates/sogo-config/05general_preferences /etc/e-smith/templates-custom/sogo-config/05general_preferences
cp -p /etc/e-smith/templates/sogo-config/20user_source_ldap /etc/e-smith/templates-custom/sogo-config/20user_source_ldap
Edit
/etc/e-smith/templates-custom/sogo-config/05general_preferences
and add this line (please see the attached pictures):
$S{SOGoForceExternalLoginWithEmail} = ‘YES’;
Edit
/etc/e-smith/templates-custom/sogo-config/20user_source_ldap
and make the settings according to the attached pictures.
signal-event nethserver-sogo-update
(or restart the server).
1 Like
giacomo
(Giacomo Sanchietti)
February 17, 2016, 8:03am
17
I like this thing, can we make it a prop inside the DB?
@alefattorini , @davidep what do you think?
alefattorini
(Alessio Fattorini)
February 17, 2016, 8:50am
18
Yes, I like it too! It’s on my book now.
Thanks @Nas and @GG_jr great work!
1 Like
davidep
(Davide Principi)
Split this topic
February 17, 2016, 1:03pm
19
GG_jr
(Gabriel GHEORGHIU)
February 15, 2016, 1:10pm
20
Hi Artem,
Unfortunately nothing.
This morning at 04:00 I start a business trip for 3 or 4 days and last night I slept early.
Maybe you have time to find the solution. Anyway, you know how to do this, better than me!
TIA,
Gabriel GHEORGHIU
steve
(steve)
September 6, 2022, 5:27pm
21
You find solution for Nethserver 7.9 and SOGo here: