Howto change userID

Stephane Branchoux stephane.branchoux at univ-perp.fr
Sat Apr 8 10:19:56 CEST 2023


Hi,

I just install this morning the last version of automx2 on a redhat 9.1

[root at radius0 automx2]# systemctl status automx2
● automx2.service - MUA configuration service
     Loaded: loaded (/etc/systemd/system/automx2.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2023-04-08 09:20:34 CEST; 46min ago
       Docs: https://rseichter.github.io/automx2/
   Main PID: 85332 (flask)
      Tasks: 1 (limit: 24768)
     Memory: 57.1M
        CPU: 1.468s
     CGroup: /system.slice/automx2.service
             └─85332 /home/automx2/.venv/bin/python3 /home/automx2/.venv/bin/flask run --host=127.0.0.1 --port=4243

avril 08 09:55:24 radius0.univ-perp.fr flask[85332]: LDAP match uid=d3002690,ou=people,dc=univ-perp,dc=fr
avril 08 09:55:24 radius0.univ-perp.fr flask[85332]: Returning list element "Pascal Blaise"
avril 08 09:55:24 radius0.univ-perp.fr flask[85332]: Returning list element "d3002690"
avril 08 09:55:24 radius0.univ-perp.fr flask[85332]: LookupResult(status=0, cn='Pascal Blaise', uid='d3002690’)


In sqlite database, ldap server is declared like this :

sqlite> select * from ldapserver;
0|ldapmaster.univ-perp.fr|389|0|ou=People,dc=univ-perp,dc=fr|(mail={0})|uid|cn|mail|

When i test , username is uid and i would like username a emailadress :


curl 'http://127.0.0.1:4243/mail/config-v1.1.xml?emailaddress=blaise.pascal@etudiant.univ-perp.fr'
<clientConfig version="1.1"><emailProvider id="automx2-0"><identity /><domain>univ-perp.fr</domain><domain>etudiant.univ-perp.fr</domain><displayName>Université de Perpignan</displayName><displayShortName>Université</displayShortName><incomingServer type="imap"><hostname>partage.univ-perp.fr</hostname><port>993</port><socketType>SSL</socketType><username>d3002690</username><authentication>plain</authentication></incomingServer><outgoingServer type="smtp"><hostname>partage.univ-perp.fr</hostname><port>465</port><socketType>SSL</socketType><username>d3002690</username><authentication>plain</authentication></outgoingServer></emailProvider></clientConfig

Thanks
-- 
Stephane BRANCHOUX
Direction des systèmes d’information  de l'Université de Perpignan.
Systèmes/Réseaux - RSSI
mailto:stephane.branchoux at univ-perp.fr
04 68 66 21 24 / 07 60 73 38 42




> Le 7 avr. 2023 à 21:52, Ralph Seichter <automx2 at seichter.de> a écrit :
> 
> (Please keep responses on the mailing list)
> 
> * Stephane Branchoux:
> 
>> The webserver forward requests because it returns uid of the ldap
>> user.
> 
> That may or may not be the case. Without logs and details about the
> webserver config, I cannot tell. :-) You also did not mention your
> platform at all, and I am not going to spend time guessing.
> 
>> How to tell him to return email adress ?
> 
> Did you read the online documentation I mentioned? That's the best
> starting point: https://rseichter.github.io/automx2/
> 
>> I use automx downloaded in april 2020
> 
> Well, given that I first released "automx2" in 2021, and due to you not
> providing the exact version number I asked for, I have to assume you are
> using the old "automx", which has nothing to do with me, so I won't be
> able to help you at all. I wrote "automx2" from scratch, as a replacemnt
> for "automx", which was authored by somebody else.
> 
> -Ralph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2459 bytes
Desc: not available
URL: <https://mail.sys4.de/pipermail/automx-users/attachments/20230408/9b09b6ae/attachment.p7s>


More information about the automx-users mailing list