Re: OpenWebMail support

Selcuk Yazar <[email protected]> Mon, 22 Aug 2011 16:54:45 +0300
Newsgroups gmane.mail.jamm.user
Message-ID <CACBG-R25Vctc9qgUy0WafjHw+hsd1tEL-Sf2daJ_quhtHFi58Q@mail.gmail.com>
--===============4857243515135821186==
Content-Type: multipart/alternative; boundary=000e0cd573e21fd40704ab186de6

--000e0cd573e21fd40704ab186de6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thank you for prompt replies.

I 've one last question, i also want to install mailing list access policy
manager for JammAccountAliases , which software do you suggest. (MLAPD or
another) , or mail list manager application with mail send restraictions ?

thanks in advance.


sel=E7uk

2011/8/22 Andr=E9 Schild <[email protected]>

> **
> Hello Sel=E7uk,
>
> we don't use OpenWebMail, we use it with Horde/IMP and Roundcube.
> Can't OpenWebMail authenticate against the IMAP server ?
> That would probably be simplest....
>
> In your setup, are you sure that there is a OU between the mail and the j=
vd
> in ldap ?
>
> Andr=E9
>
> Am 22.08.2011 14:59, schrieb Selcuk Yazar:
>
> Hi,
>
>  How can we user OpenWEbMail with Jamm schemas ?
>
>
>
>  sub check_userpassword {
>    #  0 : ok
>    # -2 : parameter format error
>    # -3 : authentication system/internal error
>    # -4 : password incorrect
>    my ($r_config, $user, $password) =3D @_;
>
>     return (-2, 'User or password is null')
>       if !defined $user || $user eq '' || !defined $password || $password
> eq '';
>
>     my $ldap =3D Net::LDAP->new($ldapHost) or return(-3, "LDAP error $@")=
;
>     $ldap->bind (dn=3D>"$cn, $dc1, $dc2", password =3D>$pwd) or  return(-=
3,
> "LDAP error $@");
>
>     # Attempt to bind using the username and password provided.
>    # (For a secure LDAP config, only auth should be allowed for
>    # any user other than self and rootdn.)
>    #mail=3Dselcukyazar@*******.edu.tr,ou=3D**********,jvd=3Dtrakya.edu.tr
> ,o=3Dhosting,dc=3Dmyhosting,dc=3Dexample
>
>     my $list =3D $ldap->search(
>                               base    =3D> $ldapBase,
>                               filter  =3D>
> "(&(objectClass=3DJammMailAccount)(mail=3D$user\@********.edu.tr
> )(accountActive=3DTRUE)(delete=3DFALSE))",
>                               attrs   =3D> ['ou']
>                            ) or return(-3, "LDAP error $@");
>
>
>     my $entry   =3D $list->entry(0);
>    my $ou_t =3D $entry->get_value('ou');
>
>     undef($ldap); # disconnect
>
>     my $mesg =3D $ldap->bind(
>                             dn       =3D> "mail=3D$user\@***.edu.tr, $ou_=
t,
> jvd=3D**********.edu.tr,o=3Dhosting,dc=3Dmyhosting,dc=3Dexample",
>                             password =3D> $password
>                          );
>
>     undef($ldap); # disconnect
>
>  thanks in advance.
>
>
>  --
> Sel=E7uk YAZAR
> http://www.selcukyazar.blogspot.com
>
>
> -------------------------------------------------------------------------=
-----
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion an=
d
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>
>
> _______________________________________________
> Jamm-users mailing [email protected]://lists.sour=
ceforge.net/lists/listinfo/jamm-users
>
>
>
> --
> Aarboard AG    Phone: +41 32 332 97 14
> Egliweg 10     Fax:   +41 32 332 97 14
> 2560 Nidau
> Switzerland    www.aarboard.ch
>
>
>
> -------------------------------------------------------------------------=
-----
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion an=
d
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>
> _______________________________________________
> Jamm-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jamm-users
>
>


--=20
Sel=E7uk YAZAR
http://www.selcukyazar.blogspot.com

--000e0cd573e21fd40704ab186de6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thank you for prompt replies.<div><br></div><div>I &#39;ve one last questio=
n, i also want to install=A0<span class=3D"Apple-style-span" style=3D"font-=
family: arial, sans-serif; font-size: 13px; line-height: 16px; background-c=
olor: rgb(255, 255, 255); ">mailing list access policy manager for JammAcco=
untAliases , which software do you suggest. (MLAPD or another) , or mail li=
st manager application with mail send restraictions ?</span></div>

<div><span class=3D"Apple-style-span" style=3D"font-family: arial, sans-ser=
if; font-size: 13px; line-height: 16px; background-color: rgb(255, 255, 255=
); "><br></span></div><div><span class=3D"Apple-style-span" style=3D"font-f=
amily: arial, sans-serif; font-size: 13px; line-height: 16px; background-co=
lor: rgb(255, 255, 255); ">thanks in advance.=A0</span></div>

<div><font class=3D"Apple-style-span" face=3D"arial, sans-serif"><span clas=
s=3D"Apple-style-span" style=3D"line-height: 16px;"><br></span></font></div=
><div><font class=3D"Apple-style-span" face=3D"arial, sans-serif"><span cla=
ss=3D"Apple-style-span" style=3D"line-height: 16px;"><br>

</span></font></div><div><font class=3D"Apple-style-span" face=3D"arial, sa=
ns-serif"><span class=3D"Apple-style-span" style=3D"line-height: 16px;">sel=
=E7uk<br></span></font><br><div class=3D"gmail_quote">2011/8/22 Andr=E9 Sch=
ild <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">a.schild@=
aarboard.ch</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><u></u>

 =20
   =20
 =20
  <div bgcolor=3D"#ffffff" text=3D"#000000">
    Hello Sel=E7uk,<br>
    <br>
    we don&#39;t use OpenWebMail, we use it with Horde/IMP and Roundcube.<b=
r>
    Can&#39;t OpenWebMail authenticate against the IMAP server ?<br>
    That would probably be simplest....<br>
    <br>
    In your setup, are you sure that there is a OU between the mail and
    the jvd in ldap ?<br>
    <br>
    Andr=E9<br>
    <br>
    Am 22.08.2011 14:59, schrieb Selcuk Yazar:
    <blockquote type=3D"cite"><div><div></div><div class=3D"h5">Hi,
      <div><br>
      </div>
      <div>How can we user OpenWEbMail with Jamm schemas ?</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>
        <div>sub check_userpassword {</div>
        <div>=A0 =A0# =A00 : ok</div>
        <div>=A0 =A0# -2 : parameter format error</div>
        <div>=A0 =A0# -3 : authentication system/internal error</div>
        <div>=A0 =A0# -4 : password incorrect</div>
        <div>=A0 =A0my ($r_config, $user, $password) =3D @_;</div>
        <div><br>
        </div>
        <div>=A0 =A0return (-2, &#39;User or password is null&#39;)</div>
        <div>=A0 =A0 =A0 if !defined $user || $user eq &#39;&#39; || !defin=
ed
          $password || $password eq &#39;&#39;;</div>
        <div><br>
        </div>
        <div>=A0 =A0my $ldap =3D Net::LDAP-&gt;new($ldapHost) or return(-3,
          &quot;LDAP error $@&quot;);</div>
        <div>
          =A0 =A0$ldap-&gt;bind (dn=3D&gt;&quot;$cn, $dc1, $dc2&quot;, pass=
word
          =3D&gt;$pwd) or =A0return(-3, &quot;LDAP error $@&quot;);</div>
        <div><br>
        </div>
        <div>=A0 =A0# Attempt to bind using the username and password
          provided.</div>
        <div>=A0 =A0# (For a secure LDAP config, only auth should be allowe=
d
          for</div>
        <div>=A0 =A0# any user other than self and rootdn.)</div>
        <div>=A0 =A0#mail=3Dselcukyazar@*******.<a href=3D"http://edu.tr" t=
arget=3D"_blank">edu.tr</a>,ou=3D**********,jvd=3D<a href=3D"http://trakya.=
edu.tr" target=3D"_blank">trakya.edu.tr</a>,o=3Dhosting,dc=3Dmyhosting,dc=
=3Dexample</div>
        <div><br>
        </div>
        <div>=A0 =A0my $list =3D $ldap-&gt;search(</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ba=
se =A0 =A0=3D&gt; $ldapBase,</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fi=
lter =A0=3D&gt;
          &quot;(&amp;(objectClass=3DJammMailAccount)(mail=3D$user\@*******=
*.<a href=3D"http://edu.tr" target=3D"_blank">edu.tr</a>)(accountActive=3DT=
RUE)(delete=3DFALSE))&quot;,</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 at=
trs =A0 =3D&gt; [&#39;ou&#39;]</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0) or re=
turn(-3, &quot;LDAP error
          $@&quot;);</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>=A0 =A0my $entry =A0 =3D $list-&gt;entry(0);</div>
        <div>=A0 =A0my $ou_t =3D $entry-&gt;get_value(&#39;ou&#39;);</div>
        <div><br>
        </div>
        <div>=A0 =A0undef($ldap); # disconnect</div>
        <div><br>
        </div>
        <div>=A0 =A0my $mesg =3D $ldap-&gt;bind(</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 dn =A0=
 =A0 =A0 =3D&gt;
          &quot;mail=3D$user\@***.<a href=3D"http://edu.tr" target=3D"_blan=
k">edu.tr</a>, $ou_t, jvd=3D**********.<a href=3D"http://edu.tr" target=3D"=
_blank">edu.tr</a>,o=3Dhosting,dc=3Dmyhosting,dc=3Dexample&quot;,</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 passwo=
rd =3D&gt; $password</div>
        <div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0);</div>
        <div><br>
        </div>
        <div>=A0 =A0undef($ldap); # disconnect</div>
      </div>
      <div><br>
      </div>
      <div>thanks=A0in advance.</div>
      <div><br clear=3D"all">
        <div><br>
        </div>
        -- <br>
        Sel=E7uk YAZAR<br>
        <a href=3D"http://www.selcukyazar.blogspot.com" target=3D"_blank">h=
ttp://www.selcukyazar.blogspot.com</a><br>
      </div>
      </div></div><pre><fieldset></fieldset>
---------------------------------------------------------------------------=
---
uberSVN&#39;s rich system and user administration capabilities and model=20
configuration take the hassle out of deploying and managing Subversion and=
=20
the tools developers use with it. Learn more about uberSVN and get a free=
=20
download at:  <a href=3D"http://p.sf.net/sfu/wandisco-dev2dev" target=3D"_b=
lank">http://p.sf.net/sfu/wandisco-dev2dev</a>
</pre>
      <pre><fieldset></fieldset>
_______________________________________________
Jamm-users mailing list
<a href=3D"mailto:[email protected]" target=3D"_blank">Jamm-=
[email protected]</a>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/jamm-users" target=
=3D"_blank">https://lists.sourceforge.net/lists/listinfo/jamm-users</a>
</pre>
    </blockquote><font color=3D"#888888">
    <br>
    <br>
    <pre cols=3D"72">--=20
Aarboard AG    Phone: <a href=3D"tel:%2B41%2032%20332%2097%2014" value=3D"+=
41323329714" target=3D"_blank">+41 32 332 97 14</a>
Egliweg 10     Fax:   <a href=3D"tel:%2B41%2032%20332%2097%2014" value=3D"+=
41323329714" target=3D"_blank">+41 32 332 97 14</a>
2560 Nidau
Switzerland    <a href=3D"http://www.aarboard.ch" target=3D"_blank">www.aar=
board.ch</a></pre>
  </font></div>

<br>-----------------------------------------------------------------------=
-------<br>
uberSVN&#39;s rich system and user administration capabilities and model<br=
>
configuration take the hassle out of deploying and managing Subversion and<=
br>
the tools developers use with it. Learn more about uberSVN and get a free<b=
r>
download at: =A0<a href=3D"http://p.sf.net/sfu/wandisco-dev2dev" target=3D"=
_blank">http://p.sf.net/sfu/wandisco-dev2dev</a><br>
<br>_______________________________________________<br>
Jamm-users mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
forge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/jamm-users" target=
=3D"_blank">https://lists.sourceforge.net/lists/listinfo/jamm-users</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Sel=E7uk=
 YAZAR<br><a href=3D"http://www.selcukyazar.blogspot.com">http://www.selcuk=
yazar.blogspot.com</a><br>
</div>

--000e0cd573e21fd40704ab186de6--


--===============4857243515135821186==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev

--===============4857243515135821186==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Jamm-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jamm-users

--===============4857243515135821186==--