ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] openldap - пустота
@ 2007-03-14 19:53 Artem Zolochevskiy
  2007-03-15  5:17 ` Artem Zolochevskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Artem Zolochevskiy @ 2007-03-14 19:53 UTC (permalink / raw)
  To: sisyphus

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



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

* Re: [sisyphus] openldap - пустота
  2007-03-14 19:53 [sisyphus] openldap - пустота Artem Zolochevskiy
@ 2007-03-15  5:17 ` Artem Zolochevskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Zolochevskiy @ 2007-03-15  5:17 UTC (permalink / raw)
  To: sisyphus

Artem Zolochevskiy wrote:

> 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 чуть ранее пробовал - всё получилось)
> 
> 

Спасибо разрбрался.
Проблема была в правах. Т.е просто надо
ldapsearch -D "cn=admin,dc=example,dc=com" -w secret ... и тогда всё
находится.

Вот к чему приводит желание следовать документации step-by-step :)
А у нас оно оказывается чуть-чуть, да не так....


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



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

end of thread, other threads:[~2007-03-15  5:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-14 19:53 [sisyphus] openldap - пустота Artem Zolochevskiy
2007-03-15  5:17 ` Artem Zolochevskiy

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