ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] openldap & sasl2
@ 2004-08-10  9:48 Oleg Frolkov
  2004-08-10 12:51 ` Alexei Takaseev
  2004-08-10 13:08 ` [sisyphus] " Michael Shigorin
  0 siblings, 2 replies; 21+ messages in thread
From: Oleg Frolkov @ 2004-08-10  9:48 UTC (permalink / raw)
  To: sisyphus

Здравствуйте.

Есть LDAP сервер, на нем следующая зона:
-----------------------------------------
dn: dc=mydomain,dc=ru
objectClass: dcObject
objectClass: organization
o: mydomain Network
dc: mydomain

dn: cn=admin,dc=mydomain,dc=ru
objectClass: organizationalRole
cn: admin

dn: ou=users,dc=mydomain,dc=ru
objectClass: organizationalUnit
ou: users

dn: cn=test,ou=users,dc=mydomain,dc=ru
cn: test
givenName: test
mail: test
mail: test@mydomain.ru
objectClass: inetOrgPerson
objectClass: uidObject
objectClass: organizationalPerson
objectClass: top
sn: UTM created mail account
uid: test
userPassword: {MD5}password
-------------------------------------------

Соответственно сам LDAP настроен и ldapsearch выдает:

#ldapsearch -LLL -x -w adminpassword -D 'cn=admin,dc=mydomain,dc=ru' \
            -b 'dc=mydomain,dc=ru' 'cn=test'
---------------------------------------------------
dn: cn=test,ou=users,dc=mydomain,dc=ru
cn: test
givenName: test
mail: test
mail: test@mydomain.ru
objectClass: inetOrgPerson
objectClass: uidObject
objectClass: organizationalPerson
objectClass: top
sn: UTM created mail account
uid: test
userPassword:: password
--------------------------------------------------

Теперь надо авторизовать пользователя через sasl2:

/etc/sasl2/saslauthd.conf

ldap_servers: ldap://127.0.0.1
ldap_bind_dn: cn=admin,ou=users,dc=mydomain,dc=ru
ldap_bind_pw: adminpassword
ldap_version: 3
ldap_timeout: 5
ldap_time_limit: 5
        
ldap_search_base: ou=users,dc=mydomain,dc=ru
ldap_auth_method: custom
ldap_debug 10

Теперь запускаю #service saslauthd start

Теперь #testsaslauthd -r mydomain.ru -u test -p test
       #testsaslauthd -r mydomain.ru -u test@mydomain.ru -p test

       Результат на обе строчки: 0: NO "authentication failed"

       в /etc/messages имею:
       
Aug 10 13:22:29 eleven saslauthd[4003]: do_auth         : auth
failure: [user=test] [service=imap] [realm=mydomain.ru] [mech=ldap] [reason=Unknown] 

Aug 10 13:22:38 eleven saslauthd[4004]: do_auth         : auth
failure: [user=test@mydomain.ru] [service=imap] [realm=mydomain.ru] [mech=ldap] [reason=Unknown] 

Что я делаю неправильно?

-- 
С уважением,
 Oleg                          mailto:rcc-of@penza.com.ru



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2004-08-13  9:15 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10  9:48 [sisyphus] openldap & sasl2 Oleg Frolkov
2004-08-10 12:51 ` Alexei Takaseev
2004-08-10 13:51   ` Re[2]: " Oleg Frolkov
2004-08-10 14:05     ` Alexei Takaseev
2004-08-11 13:17       ` Re[4]: " Oleg Frolkov
2004-08-11 13:28         ` vserge
2004-08-13  9:15       ` rcc-of
2004-08-10 13:08 ` [sisyphus] " Michael Shigorin
2004-08-10 13:11   ` Ivan Fedorov
2004-08-10 13:47   ` vserge
2004-08-11  6:01     ` Ivan Fedorov
2004-08-11  6:40       ` vserge
2004-08-10 14:04   ` Maxim Tyurin
2004-08-11  6:41     ` vserge
2004-08-11  7:28       ` I: OpenLDAP mailing list (was: [sisyphus] openldap & sasl2) Michael Shigorin
2004-08-11  8:17         ` Oops, " Michael Shigorin
2004-08-11  8:37           ` Mike Lykov
2004-08-11  8:49             ` [sisyphus] Re: Oops, Re: I: OpenLDAP mailing list Ivan Fedorov
2004-08-11  8:59               ` Mike Lykov
2004-08-10 14:22   ` [sisyphus] Re: openldap & sasl2 Pyatnitskich Evgeniy
2004-08-11  8:00   ` Michael Shigorin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git