Re: login with no ldap account

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

 



On Fri, Mar 21, 2008 at 10:18 AM, Richard Gliebe <richard.gliebe@xxxxxx> wrote:
>
>  On Mar 21, 2008, at 12:28 AM, Paul Lesniewski wrote:
>
>  > On Thu, Mar 20, 2008 at 3:32 AM, Richard Gliebe
>  > <richard.gliebe@xxxxxx> wrote:
>  >> Hi,
>  >>
>  >> I have a problem with some users which have no ldap accounts, they
>  >> have only user account on
>  >> our imap Server.
>  >>
>  >> They (with only a local account on our imap server) get following
>  >> error message from the login screen:
>  >>
>  >> Warning: ldap_bind(): Unable to bind to server: Invalid credentials
>  >> in /usr/share/squirrelmail/plugins/retrieveuserdata/ldap.php on
>  >> line 67
>  >> Warning: Cannot modify header information - headers already sent by
>  >> (output started at /usr/share/squirrelmail/plugins/retrieveuserdata/
>  >> ldap.php:67) in/usr/share/squirrelmail/functions/i18n.php on line 416
>  >> Warning: Cannot modify header information - headers already sent by
>  >> (output started at /usr/share/squirrelmail/plugins/retrieveuserdata/
>  >> ldap.php:67) in/usr/share/squirrelmail/src/webmail.php on line 65
>  >>
>  >> Is it possible to mix the authentification method with ldap and imap
>  >> accounts?
>  >
>  > Authentication only goes to IMAP.  That is not your problem.  You need
>  > to disable the retrieveuserdata plugin or re-code it so it knows when
>  > a user has user data in LDAP and when it does not.
>
>  thanks for your replay. Can you give me any hint, where I have to edit
>  some Code.
>
>  My idea is to insert an "if/then" question like.
>
>  if [ $user has an IMAP account (with ldapsearch) ]

How will you determine this?  This is system-specific - only you know
how to code this.  It's not very smart to keep a list of users in your
code, so you'd want to do some sort of lookup instead.  The better
thing to do is probably find the LDAP lookup that is failing and trap
the failures, making the plugin return silently instead of causing
errors.  Go to the line mentioned in the error messages and see if the
author has checked the command's return status.  If not, you should do
exactly that.  Put a "@" in front of the command so no error is
generated in the logs or on screen, then check the return status of
the command and return if it is bad.

>    then
>       <use the retrieveuserdata plugin>
>    else
>       <use IMAP server authentication>

Again, you need to rethink your understanding.  This is not correct.
SM authenticates *all* users against IMAP *only*.  The plugin
*subsequently* looks for extra user data in LDAP.  These are two
different actions.

>  fi
>
>  thanks in advance
>
>  Richard
>
> >
>  >
>  >> We are running squirrelmail 1.4.10a-2~dapper1 on Ubuntu 6.06.2 LTS
>  >> with
>  >> the plugin 'retrieveuserdata.0.9-1.4.0'
>  >>
>  >> Almost of your clients have an account on your global ldap Server
>  >> (which works really fine ;-))
>  >
>  > We don't host any LDAP servers.  We don't host anything except
>  > source code.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux