From: Dan <dan@bgnet.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: [Sysadmins] samba as PDC Date: Sat, 19 Jan 2008 20:21:15 +1000 Message-ID: <4791CF1B.2000802@bgnet.ru> (raw) Уважаемые знатоки. Имеется связка samba(3.0.28)+ldap(2.3.35). До недавнего времени, samba 3.0.26, а перед этим 3.0.24, все было нормально, после обновления заметил интересную штуку. При попытке добавлении компьютера к домену, самба начала выдавать ошибку. Анализ логов LDAP'а показал следующее: 1. Самба(add machine script = /usr/sbin/smbldap-useradd -w %u) создает posix account для машины в "ou=Computers": slapd[30295]: conn=22 op=5 ADD dn="uid=server$,ou=Computers,dc=ptums,dc=ru" 2. При проверке, на предмет добавления, самба упорно начинает искать компьютер в "ou=Users": slapd[30295]: conn=21 op=4 SRCH base="ou=Users,dc=ptums,dc=ru" scope=1 deref=0 filter="(&(objectClass=posixAccount)(uid=server$))" Замена в файле nss_ldap.conf: nss_base_passwd ou=Users,dc=ptums,dc=ru?one nss_base_shadow ou=Users,dc=ptums,dc=ru?one на nss_base_passwd dc=ptums,dc=ru?sub nss_base_shadow dc=ptums,dc=ru?sub решила проблему. Так вот вопрос: Почему прежние самбы 3.0.24 и 3.0.26 искали записи об машинах в ou=Computers, а 3.0.28 в ou="Users"? -- С уважением, Олег Данченко
reply other threads:[~2008-01-19 10:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4791CF1B.2000802@bgnet.ru \ --to=dan@bgnet.ru \ --cc=sysadmins@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 sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git