Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Finnish
  • Search

Samba, winbind ja AD käyttäjien loggaus

Keskustelua Gentoo Linuxista suomeksi. Tervetuloa!

Moderator: Chiitoo

Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
shS
n00b
n00b
Posts: 12
Joined: Thu Jun 17, 2004 6:26 am
Location: Turku

Samba, winbind ja AD käyttäjien loggaus

  • Quote

Post by shS » Tue Jul 06, 2004 10:20 am

En ole varma siitä, mitä olen tehnyt väärin, mutta arvelen, että suurella todennäköisyydellä jotain. :cry:

Ainoa Samban versio, minkä sain winbindin kanssa toimimaan oikein oli 3.0.2a-r2. Muissa versioissa (3.0.1-r1, 3.0.4-r1) winbind ei suostunut toimimaan lainkaan (wbinfo -u antoi Error looking up domain users, wbinfo -t antoi virheen 0x0).

Tietokonetili on AD toimialueella ja saan käyttäjät ja ryhmät PDC:ltä komennolla

# wbinfo -u
ja
# wbinfo -g

Näen, että kaikki ovat oikeilla paikoillaan (muotoa DOMAIN+tunnus ja DOMAIN+ryhmä) komennolla

# getent passwd

# getent group

"Shadow" tiedosto ei sisällä mitään tietoja mistään käyttäjästä. En pysty kirjautumaan Gentoohon käyttämällä toimialueen käyttäjätilejä (Login incorrect)

Pitäisikö wbinfo --set-auth-user= paikalle laittaa paikallinen vai toimialueen järjestelmänvalvoja?

smb.conf :

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.

[global]

workgroup = TOIMIALUE
netbios name = FURY128
server string = %v @ Samba

realm = TOIMIALUE.FI
password server = 10.10.10.100
security = ADS
encrypt passwords = yes
printcap name = cups
load printers = yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
idmap uid = 10000-20000
winbind use default domain = yes
winbind separator = /
winbind enum users = yes
winbind enum groups = yes
preferred master = no
wins server = 10.10.10.100
wins proxy = no
idmap gid = 10000-20000
use sendfile = Yes
printing = cups
map to guest = bad user
template shell = /bin/bash
obey pam restrictions = yes
pam password change = yes

add user script = /usr/sbin/useradd -s /bin/false '%u%'
delete user script = /usr/sbin/userdel '%s'
add user to group script = /usr/sbin/gpasswd -a '%u' '%g'
delete user from group script = /usr/sbin/gpasswd -d '%u' '%g'
set primary group script = /usr/sbin/usermod -g '%g' '%u'
add group script = /usr/sbin/groupadd %g && getent group '%g'|awk -F: '{print $3}'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g 100 \ -s /bin/false -M %u

dos charset = 850
unix charset = ISO8859-15

[homes]
comment = Home Directories
browseable = no
writeable = yes

[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @root
guest ok = yes

[public]
comment = Public Stuff
path = /var/pub
public = yes
read only = yes
write list = @staff @root

[printers]
comment = All Printers
print command = lpr-cups -P %p -o raw %s -r
path = /var/spool/samba
printer admin = root, shs
create mask = 0600
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.

nsswitch.conf

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.

# /etc/nsswitch.conf:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/nsswitch.conf,v 1.4 2002/11/18 19:39:22 azarah Exp $

passwd: compat winbind
shadow: compat winbind
group: compat winbind

# passwd: db files nis
# shadow: db files nis
# group: db files nis

hosts: files dns winbind
networks: files dns

services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files

automount: files
aliases: files

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.

krb5.conf

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.

[libdefaults]
ticket_lifetime = 600
default_realm = TOIMIALUE.FI
default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc
default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc

[realms]
TOIMIALUE.FI = {
kdc = PALVELIN.TOIMIALUE.FI:88
admin_server = ADMIN.TOIMIALUE.FI:749
}

[domain_realm]
.toimialue.fi = TOIMIALUE.FI
toimialue.fi = TOIMIALUE.FI

[kdc]
profile = /etc/krb5kdc/kdc.conf

[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.
:D
Top
arwen
n00b
n00b
Posts: 47
Joined: Mon Dec 29, 2003 12:09 pm

  • Quote

Post by arwen » Tue Jul 06, 2004 10:31 am

Näyttäs äkkiseltään ihan OK:lta. Onkos sulla "winbind" daemoni pyörimässä? (mikä on avain koko juttua saada toimimaan)

Kerran olen tälläisen systeemin tehny tämän ohjeen perusteella http://us4.samba.org/samba/ftp/docs/htm ... nbind.html
Arwen
Top
shS
n00b
n00b
Posts: 12
Joined: Thu Jun 17, 2004 6:26 am
Location: Turku

  • Quote

Post by shS » Wed Jul 07, 2004 4:54 am

root@FURY128 shs # ps -ae | grep winbindd
30489 ? 00:00:00 winbindd
30491 ? 00:00:00 winbindd
:D
Top
shS
n00b
n00b
Posts: 12
Joined: Thu Jun 17, 2004 6:26 am
Location: Turku

Edistystä?

  • Quote

Post by shS » Thu Jul 08, 2004 6:31 am

Eli nyt näyttäisi jo paremmalta, muokkasin /etc/pam.d hakemiston login ja system-auth tiedostoja hyväksymään winbindin ja pääsen loggautumaan toimialueen käyttäjänä. Tämä tosin toimii ainoastaan TOIMIALUE+käyttäjä muodossa, eikä pelkästään "käyttäjä"-muodossa, vaikka olen määritellyt smb.conf:n "winbind use default domain = true"
Myöskään "winbind use default domain = yes" ei vaikuta asiaan. Loggautuminen tulee aina tehdä "TOIMIALUE+käyttäjä" muodossa.
Käyttäjien kotihakemistotkaan eivät ilmesty itsestään "/home/TOIMIALUE" hakemiston alle, vaikka "/home/TOIMIALUE" hakemiston ryhmä on asetettu "TOIMIALUE+Domain Users" käyttäjille ja chmodattu muotoon 775. Käyttäjä saa tulosteen
# No directory /home/TOIMIALUE/pekka!
# Logging in with home = "/".

Su'aus ei myöskään toimi pelkästään toimialueen käyttäjänimellä vaan vaatii myös toimialueen.
# root@FURY128 shs # su pekka
# Unknown id: pekka

mutta näin toimii:

# root@FURY128 shs # su TOIMIALUE+pekka
# TOIMIALUE+pekka@FURY128 shs $

myöskään getent ei anna passwd tiedostosta tietoja pelkästään käyttäjänimellä.

root@FURY128 shs # getent passwd pekka
root@FURY128 shs # getent passwd TOIMIALUE+pekka
TOIMIALUE+pekka:x:10014:10000:pekka eskola:/home/TOIMIALUE/pekka:/bin/bash

?
:D
Top
shS
n00b
n00b
Posts: 12
Joined: Thu Jun 17, 2004 6:26 am
Location: Turku

toimii

  • Quote

Post by shS » Wed Jul 21, 2004 6:24 am

pitkällisen säätämisen tuloksena sain loggauksen default domainiin toimimaan jostain kumman syystä :P

ongelmana on nyt GDM, joka ei tunnista toimialueen käyttäjiä... siis normaali loggaus kyllä onnistuu, mutta ei GDM:n kautta.
:P
:D
Top
shS
n00b
n00b
Posts: 12
Joined: Thu Jun 17, 2004 6:26 am
Location: Turku

:(

  • Quote

Post by shS » Tue Jul 27, 2004 5:42 am

entrance ei myöskään toimi toimialueen käyttäjätunnuksilla :(
Top
shS
n00b
n00b
Posts: 12
Joined: Thu Jun 17, 2004 6:26 am
Location: Turku

noniin

  • Quote

Post by shS » Thu Sep 23, 2004 8:11 pm

heti sain toimimaan, kun ymmärsin konffata noita login managerin omia /etc/pam.d polussa sijaitsevia tiedostoja

:oops:
:D
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Finnish”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic