ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Artem Zolochevskiy <az@zolochevskie.net>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] openldap - пустота
Date: Wed, 14 Mar 2007 21:53:19 +0200
Message-ID: <et9jrh$oas$1@sea.gmane.org> (raw)

hi all

знакомство с openldap незадалось :(

вооружился openldap-doc и поехал шаг за шагом как в quickstart,
и сразу наступил на грабли, подскажите где что не так.

# apt-get install openldap-servers
# service slapd start
$ ldapsearch -LLL -x -b '' -s base '(objectclass=*)' namingContexts
dn:
namingContexts: dc=example,dc=com

пока проде всё работает, подгружаем ldif

$ cat /tmp/example.ldif
# Organization for Example Corporation
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
dc: example
o: Example Corporation
description: The Example Corporation

# Organizational Role for Directory Manager
dn: cn=admin,dc=example,dc=com
objectClass: organizationalRole
cn: admin
description: Directory Manager

$ ldapadd -x -D "cn=admin,dc=example,dc=com" -w secret -f /tmp/example.ldif
adding new entry "dc=example,dc=com"
adding new entry "cn=admin,dc=example,dc=com"

смотрим что находится
$ ldapsearch -LLL -x -b 'dc=example,dc=com' '(objectclass=*)'
а ничего :(
а так ?
$ ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 0 Success

# numResponses: 1

тоже не особо.
хотя

# slapcat
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
dc: example
o: Example Corporation
description: The Example Corporation
structuralObjectClass: organization
entryUUID: c6a21d00-66b0-102b-8857-b1912e3f975e
creatorsName: cn=admin,dc=example,dc=com
createTimestamp: 20070314194850Z
entryCSN: 20070314194850Z#000000#00#000000
modifiersName: cn=admin,dc=example,dc=com
modifyTimestamp: 20070314194850Z

dn: cn=admin,dc=example,dc=com
objectClass: organizationalRole
cn: admin
description: Directory Manager
structuralObjectClass: organizationalRole
entryUUID: c6a5e9bc-66b0-102b-8858-b1912e3f975e
creatorsName: cn=admin,dc=example,dc=com
createTimestamp: 20070314194850Z
entryCSN: 20070314194850Z#000001#00#000000
modifiersName: cn=admin,dc=example,dc=com
modifyTimestamp: 20070314194850Z

вроде всё есть.

Извините за длинный пост.
Может хоть направление подскажете?
а может баг? (Ибо на alm24 чуть ранее пробовал - всё получилось)


-- 
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org



             reply	other threads:[~2007-03-14 19:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 19:53 Artem Zolochevskiy [this message]
2007-03-15  5:17 ` Artem Zolochevskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='et9jrh$oas$1@sea.gmane.org' \
    --to=az@zolochevskie.net \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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