ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Borovskoy <alexey_borovskoy@mail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] добавление записей в openldap
Date: Thu, 8 Jul 2004 22:04:51 +1300
Message-ID: <200407082204.53170.alexey_borovskoy@mail.ru> (raw)
In-Reply-To: <40EBF648.9070604@soc.adm.yar.ru>

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

* Четверг 08 Июль 2004 02:10 Дворников Михаил 
<m_dvor@soc.adm.yar.ru>

Добрый вечер.

> Пытаюсь добавить запись в openldap командой:
> [root@server2 openldap]# ldapadd -f m.ldif -D "o=dep,c=ru"
>
> Права дал всем максимальные.
>
> В файле m.ldif:
> dn: cn=mihail,o=dep,c=ru
> objectClass: person
> cn: mihail
> sn: mmm

Сперва надо создать o=dep,c=ru.
Пример в аттаче.

> [root@server2 openldap]# ldapadd -f m.ldif -D "o=dep,c=ru"
> adding new entry "cn=mihail,o=dep,c=ru"
> ldap_add: No such object
>          additional info: parent does not exist

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

[-- Attachment #2: init_ldap.ldif --]
[-- Type: text/x-ldif, Size: 709 bytes --]

dn: dc=intranet,dc=local
objectclass: dcObject
objectclass: organization
o: intranet
dc: intranet
     
dn: ou=Peoples,dc=intranet,dc=local
objectclass: top
objectclass: organizationalUnit
ou: Peoples

dn: ou=Groups,dc=intranet,dc=local
objectclass: top
objectclass: organizationalUnit
ou: Groups

dn: ou=Computers,dc=intranet,dc=local
objectclass: top
objectclass: organizationalUnit
ou: Computers

dn: cn=sambaproxy,dc=intranet,dc=local
objectclass: top
objectclass: simpleSecurityObject
objectclass: organizationalRole
cn: sambaproxy
userPassword: samba

dn: cn=pamproxy,dc=intranet,dc=local
objectclass: top
objectclass: organizationalRole
objectclass: simpleSecurityObject
cn: pamproxy
userPassword: pam

  parent reply	other threads:[~2004-07-08  9:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-07 13:10 Дворников Михаил
2004-07-07 13:42 ` Andriy Dobrovol's'kii
2004-07-08  9:04 ` Alexey Borovskoy [this message]
2004-07-09  5:21   ` Дворников Михаил

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=200407082204.53170.alexey_borovskoy@mail.ru \
    --to=alexey_borovskoy@mail.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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