Portál AbcLinuxu, 26. dubna 2024 22:19


Dotaz: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql

19.2.2010 18:49 malvin
Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
Přečteno: 155×
Odpovědět | Admin
Ahoj, potreboval bych poradit, kde mam chybu. Jsem z toho sileny.
Snazim se autentizovat courier-pop3d / imap pres mysql.

Jedu na debianu - lenny
emaily mam dorucene Postfixem do maildiru - otestovano.
Courier: nastaveni authdaemonrc: authmodulelist="authmysql"

Kdyz si chci overit pristup uzivatelu pres authtest:

Authenticated: malvin (uid 5000, gid 5000)
Home Directory: home/
Maildir: (none)
Quota: (none)
Encrypted Password: test1
Cleartext Password: (none)
Options: (none)

To znamena, ze do databaze si sahne, ale nevytahne z ni veskere data.
- uz jsem zkousel databazi opravit, ruzne upravit, jestli nemam spatne napsane nazvy a nic nepomohlo. V databazi mam pritom vyplnene vsechny data... pristup pres telnet mi taky odmitne...

Nastaveni authmysqlrc:

MYSQL_LOGIN_FIELD id
MYSQL_SERVER localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD "heslo"
#MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_DATABASE postfix
MYSQL_USER_TABLE passwd
MYSQL_PORT 3306
MYSQL_LOGIN_FIELD id
MYSQL_CRYPT_PWFIELD crypt
MYSQL_UID_FIELD uid
MYSQL_GID_FIELD gid
MYSQL_HOME_FIELD home
MYSQL_MAILDIR_FIELD maildir
MYSQL_NAME_FIELD name

tabulka passwd v mysql:
id crypt clear name uid gid home maildir quota
malvin test1 test2 jirka 5000 5000 home/ cokoliv.cz 0

Je mozne, ze si pro data saha jeste jinym zpusobem nez pomoci nastaveni v authmysqlrc?
diky za radu
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Jakub Lucký avatar 19.2.2010 20:22 Jakub Lucký | skóre: 40 | Praha
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
Odpovědět | | Sbalit | Link | Blokovat | Admin
Já používám podobný postup, ale přes pam_mysql od Zdendy

Používáme totéž?
If you understand, things are just as they are; if you do not understand, things are just as they are.
19.2.2010 21:18 malvin
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql

JJ - je to na stejnem zaklade - delal jsem to castecne podle toho.

Uz se mi podarilo zobrazit udaje - moje chyba v authmysalrc -> nemel jsem nalinkovane udaje.

Ale vznikl mi dalsi problem - ikdyz mi udaje (authtest) vypise, tak nejsem schopny se prihlasit pomoci telnet

-> nekde jsem videl stejny problem (nevim jestli mel reseni), ale zaboha to zas nemuzu najit...

Jakub Lucký avatar 19.2.2010 21:34 Jakub Lucký | skóre: 40 | Praha
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
Smažte WHERE klauzuli v /etc/pam.d/mysql

Dělá problémy...
If you understand, things are just as they are; if you do not understand, things are just as they are.
19.2.2010 22:07 malvin
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql

ale ja nemam v pam.d mysql

Jakub Lucký avatar 19.2.2010 23:25 Jakub Lucký | skóre: 40 | Praha
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
Aha... tak to pak máme asi trochu jiné nastavení...

Autentizujete přesně přes co? Saslauthd?
If you understand, things are just as they are; if you do not understand, things are just as they are.
20.2.2010 01:19 malvin
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql

jj sasl - uz mi to cele bezi.

Ty delas autentifikaci jak, kdyz ne sasl? Jake jsou jeste moznosti?

....jsem zacatecnik v linuxu...

 

Jakub Lucký avatar 20.2.2010 01:40 Jakub Lucký | skóre: 40 | Praha
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
Já to dělám podle Zdendy... Saslauthd se ptá PAMu, který to tahá z MySQL ;)
If you understand, things are just as they are; if you do not understand, things are just as they are.
23.2.2010 08:59 malvin
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
tak v tom to mame stejne. Jde to udelat i jinak? Staci mi nejake reseni - info si uz dohledam. Jestli mas nekde odkaz na nejake zajimave clanky o tomto, prosim posli mi je. Dik.
23.2.2010 10:02 hahaha
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
http://bluemoon.nazory.cz/view.php?cisloclanku=2008050004 http://bluemoon.nazory.cz/view.php?cisloclanku=2007120023
Jakub Lucký avatar 23.2.2010 14:37 Jakub Lucký | skóre: 40 | Praha
Rozbalit Rozbalit vše Re: Autentizace courier pres mysql pro vybrani schranky - Problem authlib (authtest) s mysql
No, u mě jediný důvod, proč to nefungovalo, byl problém ve WHERE klauzuli v /etc/pam.d/mysql

Ale jinak na debugování doporučuju spustit si saslauthd ručně a koukat hodně do /var/log/auth.log
If you understand, things are just as they are; if you do not understand, things are just as they are.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.