Hello Flavio,

Flavio Mini wrote:
Thank you for your help.
Still I could not login. I got the following erromessages. 
There are any logs in the web-cyradm-login.log
Are there any solution for this.


Warning: fopen(web-cyradm-login.logweb-cyradm-login.log): failed to open stream: Permission denied in /srv/www/htdocs/web-cyradm/auth.inc.php on line 20
 
 Warning: fwrite(): supplied argument is not a valid stream resource in /srv/www/htdocs/web-cyradm/auth.inc.php on line 22
 
 Warning: fclose(): supplied argument is not a valid stream resource in /srv/www/htdocs/web-cyradm/auth.inc.php on line 23
 
 Warning: check(DB.php): failed to open stream: No such file or directory in /srv/www/htdocs/web-cyradm/lib/crypto.php on line 24
 
 Warning: check(): Failed opening 'DB.php' for inclusion (include_path='.:') in /srv/www/htdocs/web-cyradm/lib/crypto.php on line 24
 
 Fatal error: Undefined class name 'db' in /srv/www/htdocs/web-cyradm/lib/crypto.php on line 27


  
from your post it seems that PHP pear libraries are not installed or have a wrong path.
Check you have perl PHP::Pear installed and the PEAR pathname in php.ini is correct.

regards.

gianni socio


  
I would appreciate for any help

regards F.MIN
    





[EMAIL PROTECTED], [email protected] schrieb am 04.01.06 09:40:05:
Hello Flavio,

Flavio Mini wrote:

  
Hello,
thank you for your help. The first step is done.

Now I can't login. Is there a configuration error? Below my config.conf.
There is no logs in the logfile web-cyradm-login.log
 

    
i got the same error with web-cyradm 0.5.4 the first time i installed 
it. I found a possible bug in a redirection statement in script file 
auth-inc.php. I commented out the following lines:

if ($ref!=$_SERVER['SCRIPT_FILENAME']) {
  header("Location: index.php");
}

and i could login.

Try it.
If the above fix will not solve your problem recover the original file 
and check your authentication settings. Follow the Luc The low howto at 
the following Url:

http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html

to do that.

regards
gianni socio.

  
<?php

########################################################################################
#
# This is web-cyradm Version 0.5.4 CVS
#
#
#########################################################################################

// Set Default language

$DEFAULTLANG = "en_EN";

# The Cyrus login stuff
$CYRUS = array(
'HOST' => 'localhost',
'PORT' => 143,
'ADMIN' => 'cyrus',
'PASS' => 'secret'
);

/* DB_TYPE

Possible Values are:
o mysql
o pgsql

To operate a mailsystem with postgreSQL you will need a patch for
Postfix.

Other Databases need to be supported by PAM and postfix
*/

$DB = array(
'TYPE' => 'mysql',
'USER' => 'mail',
'PASS' => 'secret',
'PROTO' => 'unix', // set to "tcp" for TCP/IP
'HOST' => 'localhost',
'NAME' => 'mail'
);

$DB['DSN'] = sprintf('%s://%s:[EMAIL PROTECTED]/%s', $DB['TYPE'], $DB['USER'],
$DB['PASS'], $DB['PROTO'],
$DB['HOST'], $DB['NAME']);

# Where should web-cyradm write its log to?
$LOG_DIR = "/var/log/web-cyradm/";

# The default timeout in seconds for a session, after that you have to login again
$SESS_TIMEOUT = 1000;

# The default quota sets the default quota for new domains
$DEFAULT_QUOTA = 20000;

# Defines if passwords are encrypted or not.
# Valid Values:
# - plain 0 No encription is used
# - crypt 1 (shadow compatible encription)
# - mysql 2 (MySQL PASSWORD function)
# - md5 3 (MD5 digest)
$CRYPT = "crypt";

# web-cyradm is compatible with cyrus-imapd-2.0.16 (and earlier?)
# however, if you are using 2.1.x and wish to use email addresses
# with .'s in them such as '[EMAIL PROTECTED]' you can set this
# option DOMAIN_AS_PREFIX to '1'. NOTE: you also have to add this
# line to your imapd.conf file:
#### imapd.conf: ####
# unixhierarchysep: yes

####
$DOMAIN_AS_PREFIX = 0;

# At the moment, web-cyradm supports two methods of password change:
# - through sql
# - poppassd
# sql is the default
$PASSWORD_CHANGE_METHOD = "sql";

# Turn up error reporting level. This overrides settings in your php.ini
#
# E_ALL - All errors and warnings
# E_ERROR - fatal run-time errors
# E_WARNING - run-time warnings (non-fatal errors)
# E_PARSE - compile-time parse errors
# E_NOTICE - run-time notices (these are warnings which often result
# from a bug in your code, but it's possible that it was
# intentional (e.g., using an uninitialized variable and
# relying on the fact it's automatically initialized to an
# empty string)
# E_CORE_ERROR - fatal errors that occur during PHP's initial startup
# E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
# initial startup
# E_COMPILE_ERROR - fatal compile-time errors
# E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
# E_USER_ERROR - user-generated error message
# E_USER_WARNING - user-generated warning message
# E_USER_NOTICE - user-generated notice message

error_reporting(E_ALL);

$VERSION="0.5.4";

# Define reserved Emailadresses (Separated by comma):
$RESERVED="postmaster,root";


#%PAM-1.0
auth sufficient pam_mysql.so user=mail passwd=secret host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time

auth sufficient pam_unix_auth.so

account required pam_mysql.so user=mail passwd=secret host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time

account sufficient pam_unix_acct.so


I would appreciate for any help

regards F.MINI

    


  
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to