SOGo groups and users mail address

yes, I reboot the server and returned in group:
MailFieldNames = ("userPrincipalName");

Thanks

You can use a custom template for it, if you do so it doesn’t change after restart


https://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html

copy

/etc/e-smith/templates/etc/sogo/sogo.conf/45user_source

to

/etc/e-smith/templates-custom/etc/sogo/sogo.conf/45user_source

Do your change here and expand the template

expand-template /etc/sogo/sogo.conf

1 Like

I push an update

EDIT: @xalex77 what is the ldap attribute for the user email in AD ?

I introduced a vars to change it manually

sogod{'CustomEmailField'}

config setprop sogod CustomEmailField mail
signal-event nethserver-sogo-update

this will change for the user and the group the ldap attribute

for user in AD:

1 Like

thank you, lets drop the CL I given above

1 Like

could you test in few minute the rpms in the PR

yum install http://packages.nethserver.org/nethserver/7.7.1908/nethforge-autobuild/x86_64/Packages/nethserver-sogo-1.7.7-1.3.pr35.g349253a.ns7.noarch.rpm
2 Likes

@xalex77
Did you test it?

delete “/etc/e-smith/templates-custom/etc/sogo/sogo.conf/45user_source” and I run?

yum install http://packages.nethserver.org/nethserver/7.7.1908/nethforge-autobuild/x86_64/Packages/nethserver-sogo-1.7.7-1.3.pr35.g349253a.ns7.noarch.rpm

After deleting the custom-template you have to expand it again with

expand-template /etc/sogo/sogo.conf

I’ve tried, but it’s not good
you have changed in AD group:

displayName = "mail";
while you have to change
MailFieldNames = ("mail");

the change to do is:
MailFieldNames = ("userPrincipalName");
to
MailFieldNames = ("mail");

how can i remove the patch? or do you make a new ?
thanks

2 Likes

yum downgrade nethserver-sogo

Sorry I will change my error :frowning:

1 Like

this is the change this time @xalex77

yum install http://packages.nethserver.org/nethserver/7.7.1908/nethforge-autobuild/x86_64/Packages/nethserver-sogo-1.7.7-1.3.pr35.g250131d.ns7.noarch.rpm
2 Likes

in AD users:

filter = "(objectClass='user')";
can be changed to
filter = "(objectClass='user') AND (sAMAccountType=805306368)";

otherwise in the user list you also see the names of the PCs added to the domain in AC :wink:

1 Like

you can make the change with an rpms?

ok
need to check also if we have no drawbacks

please @quality_team @support_team could you valid this, After the installation I can login, use the addressbook with the internal sambaAD
does it is the same with your server and with a remote SambaAD or AD