ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Oleg Frolkov <rcc-of@penza.com.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re[2]: [sisyphus] openldap , samba3, pam_ldap, nss_ldap
Date: Wed, 14 Jul 2004 13:55:29 +0400
Message-ID: <0467688600.20040714135529@penza.com.ru> (raw)
In-Reply-To: <40F3F8B9.3060107@syktsu.ru>

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

Вы писали 13 июля 2004 г., 18:59:05:

VL> Oleg Frolkov wrote:
>> Дистрибутив у меня ALT Linux sisyphus с пакетами:
>> samba-3.0.3-alt1.1
>> openldap-2.1.30-alt3
>> nss_ldap-220-alt1
>> pam_ldap-169-alt1
>> 
>> В логе на линуксе имею:
>> Jul 13 11:34:31 fs smbd[26373]:   ldapsam_search_one_group: Problem
>>    during the LDAP search: LDAP error: invalid DN (Invalid DN syntax)
>> Jul 13 11:34:31 fs smbd[26373]:   ldapsam_search_one_group: Query was:
>>    ou=Groups,dc=rcc,dc=com,dc=ru", (&(objectClass=sambaGroupMapping)(gidNumber=512))
>> 
VL> Покажите вывод команды:
VL> $ grep "ldap "  /etc/samba/smb.conf
    Показать-то я покажу.... только я не понимаю эффекта производимого
    вводом правильного/неправильного пароля :( - юзера-то оно видит.

ldap passwd sync = yes
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=admin,dc=rcc,dc=com,dc=ru
ldap suffix = "dc=rcc,dc=com,dc=ru"
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
ldap ssl = off
 add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
 add user script = /usr/local/sbin/smbldap-useradd -m "%u"
# delete user script = /usr/local/sbin/smbldap-userdel "%u"
ldap delete dn = Yes
add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
#delete group script = /usr/local/sbin/smbldap-groupdel "%g"
add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"

До кучи еще:

ldapsearch -LLL -x -D 'cn=admin,dc=rcc,dc=com,dc=ru' \
  -w supersecretpassword -b 'dc=rcc,dc=com,dc=ru' 'uid=Administrator'

dn: uid=Administrator,ou=Users,dc=rcc,dc=com,dc=ru
objectClass: inetOrgPerson
objectClass: sambaSamAccount
objectClass: posixAccount
homeDirectory: /opt/samba/home
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaHomePath: \\fs\homes
sambaHomeDrive: Z:
sambaProfilePath: \\fs\profiles\
sambaPrimaryGroupSID: S-1-5-21-3675520625-2731205987-3948704194-512
sambaSID: S-1-5-21-3675520625-2731205987-3948704194-2996
loginShell: /bin/false
gecos: Netbios Domain Administrator
uidNumber: 0
sambaPwdMustChange: 2147483647
sambaLMPassword: 14D45AF99322F92DD8F4A79B1E28032B
sambaNTPassword: 3C24B3363D7A78B36C834E2F5C6A3D6C
sambaAcctFlags: [U          ]
sn: Administrator
cn: Administrator
uid: Administrator
gidNumber: 512
sambaPwdCanChange: 1089724691
sambaPwdLastSet: 1089724691
userPassword:: e1NNRDV9bU1JNlI2NzhwQ0h0OUlNbkVGM2QzOHAyRnlVPQ==

Все как-бы нормально, но не работает :(

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



  reply	other threads:[~2004-07-14  9:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12  7:47 Oleg Frolkov
2004-07-13 14:25 ` Oleg Frolkov
2004-07-13 14:59   ` Vladimir Lettiev
2004-07-14  9:55     ` Oleg Frolkov [this message]
2004-07-14 10:08       ` Vladimir Lettiev
2004-07-14 10:09     ` Re[2]: " Oleg Frolkov
2004-07-14 10:13     ` Oleg Frolkov

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=0467688600.20040714135529@penza.com.ru \
    --to=rcc-of@penza.com.ru \
    --cc=sisyphus@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 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