Re: Re: IMAPS with extra authorization.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Samstag, den 24.07.2010, 00:43 -0500 schrieb Dan White:
> >
> >Would be a nice and clean solution to set the service name for "imapd -s"
> >to "imaps" and just use a second pam file for that service.
>
> The service name that gets passed to saslauthd is taken from the
> sasl_server_init call inside the individual servers.  So it's always 'imap'
> for all services started by imapd, and 'pop3' for all pop3d services.
>
> I don't think it would be possible without a modification to the sasl code.

Hmm,
just had a quick look at the code and didnt test it since we are using
the version from the repos.

Shouldnt this be sufficient?

---imapd.diff---
123a124
> static char* servicename="imap";
676c677
<     while ((opt = getopt(argc, argv, "sp:N")) != EOF) {
---
>     while ((opt = getopt(argc, argv, "sp:NS:")) != EOF) {
692a694,696
>       case 'S': /*set service name, needs pam file with same name*/
>               servicename=malloc(strlen(optarg)+1);
>               strcpy(servicename,optarg);
783c787
<     if (sasl_server_new("imap", config_servername,
---
>     if (sasl_server_new(servicename, config_servername,
---imapd.dif---

Didnt do a free on the pointer, should be cleared anyway after the fork
exits.
But as i said, i just had a quick look at the code.
>
> --
> Dan White


Greetings,
Syren Baran

+++++++++++++++++++++++++++++++++++++++++++

Niederlassung Deutschland:
BIT-HOUSE Ltd.
internet professionals
Erthalstr. 17
63739 Aschaffenburg
Deutschland

Amtsgericht:    Aschaffenburg
HRB-Nr.:        9136
St/Nr.:         204/104/60603
USt-Id-Nr.:     DE814408164
Gechäftsführer: Thomas Witzel

+++++++++++++++++++++++++++++++++++++++++++

Telefon:        +49.6021.8622-680
VoIP:           +49.6021.8622-680
Fax:            +49.6021.8622-676
E-Mail:         mail@xxxxxxxxxxxxx
Homepage: www.bit-house.com

+++++++++++++++++++++++++++++++++++++++++++

Hauptsitz:
BIT-HOUSE Ltd.
69 Great Hampton Street
Birmingham
West Midlands
United Kingdom

Registergericht: Companies House of Cardiff
Registernummer:  05325636
Registereintrag: United Kingdom
Director: Thomas Witzel

+++++++++++++++++++++++++++++++++++++++++++

<<attachment: winmail.dat>>

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux