• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Samba 3, openLDAP auf einem SLES9 - Samba Absturz

Hallo Liste,

seit einigen Tagen kämpfe ich mit Samba 3 und openLDAP auf einem SuSE Linux Enterprise Server 9.0.

Zuerst habe ich den openLDAP Dienst installiert und konfiguriert. Ich habe auch die erweitere Funktion mit Yast konfiguriert. Ich kann im Yast User ung Gruppen anlegen und diese können sich auch direkt an der Console oder über SSH anmelden. Funktionert wunderbar.

Wenn ich dann aber den Sambadienst konfiguriere, stürzt dieser immer ab. In /var/log/messages erhalte ich folgende Fehlermeldung:
Jan 15 11:26:05 wnsmbsrv smbd[8217]: [2005/01/15 11:26:05, 0] lib/fault.c:fault_report(36)
Jan 15 11:26:05 wnsmbsrv smbd[8217]: ===============================================================
Jan 15 11:26:05 wnsmbsrv smbd[8217]: [2005/01/15 11:26:05, 0] lib/fault.c:fault_report(37)
Jan 15 11:26:05 wnsmbsrv smbd[8217]: INTERNAL ERROR: Signal 11 in pid 8217 (3.0.9-2.1.5-SUSE)
Jan 15 11:26:05 wnsmbsrv smbd[8217]: Please read the appendix Bugs of the Samba HOWTO collection
Jan 15 11:26:05 wnsmbsrv smbd[8217]: [2005/01/15 11:26:05, 0] lib/fault.c:fault_report(39)
Jan 15 11:26:05 wnsmbsrv smbd[8217]: ===============================================================
Jan 15 11:26:05 wnsmbsrv smbd[8217]: [2005/01/15 11:26:05, 0] lib/util.c:smb_panic2(1488)
Jan 15 11:26:05 wnsmbsrv smbd[8217]: PANIC: internal error
Jan 15 11:26:05 wnsmbsrv smbd[8217]: [2005/01/15 11:26:05, 0] lib/util.c:smb_panic2(1496)
Jan 15 11:26:05 wnsmbsrv smbd[8217]: BACKTRACE: 37 stack frames:
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #0 /usr/sbin/smbd(smb_panic2+0x1ec) [0x81f7065]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #1 /usr/sbin/smbd(smb_panic+0x25) [0x81f6e73]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #2 /usr/sbin/smbd [0x81e24d7]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #3 /usr/sbin/smbd [0x81e254d]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #4 [0xffffe420]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #5 /lib/tls/libc.so.6 [0x402ff78e]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #6 /lib/tls/libc.so.6(calloc+0xe1) [0x40301c61]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #7 /usr/lib/liblber.so.199(ber_memcalloc_x+0x64) [0x4005e954]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #8 /usr/lib/libldap.so.199(ldap_new_select_info+0x35) [0x40042965]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #9 /usr/lib/libldap.so.199(ldap_create+0x112) [0x4002df02]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #10 /usr/lib/libldap.so.199(ldap_initialize+0x31) [0x4002e1c1]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #11 /usr/sbin/smbd [0x8272d0f]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #12 /usr/sbin/smbd [0x827352b]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #13 /usr/sbin/smbd [0x82737c1]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #14 /usr/sbin/smbd(smbldap_search+0x2e8) [0x8273b5f]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #15 /usr/sbin/smbd(smbldap_search_suffix+0x53) [0x8274132]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #16 /usr/sbin/smbd [0x81c6455]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #17 /usr/sbin/smbd [0x81c9873]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #18 /usr/sbin/smbd [0x81bff45]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #19 /usr/sbin/smbd(pdb_getsampwnam+0x38) [0x81c1e6c]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #20 /usr/sbin/smbd [0x8234f03]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #21 /usr/sbin/smbd [0x82355c3]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #22 /usr/sbin/smbd [0x8232b8a]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #23 /usr/sbin/smbd [0x823c235]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #24 /usr/sbin/smbd [0x8113f46]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #25 /usr/sbin/smbd(ntlmssp_update+0x219) [0x8113206]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #26 /usr/sbin/smbd(auth_ntlmssp_update+0x4b) [0x823c5d5]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #27 /usr/sbin/smbd [0x80b3825]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #28 /usr/sbin/smbd [0x80b3b93]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #29 /usr/sbin/smbd(reply_sesssetup_and_X+0x1d0) [0x80b3e91]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #30 /usr/sbin/smbd [0x80da8d0]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #31 /usr/sbin/smbd [0x80da995]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #32 /usr/sbin/smbd(process_smb+0x22d) [0x80dad64]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #33 /usr/sbin/smbd(smbd_process+0x199) [0x80dba9c]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #34 /usr/sbin/smbd(main+0x889) [0x8276fd5]
Jan 15 11:26:05 wnsmbsrv smbd[8217]: #35 /lib/tls/libc.so.6(__libc_start_main+0xe0) [0x402b2250]

Und es ist schon wieder vorbei.

Den Sambadienst habe ich folgendermaßen konfiguriert:
/etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba3/examples/smb.conf.SUSE
# Date: 2004-07-21
[global]
workgroup = cpqriz2
netbios name = wnsmbsrv
os level = 99
preferred master = yes
domain master = yes
local master = yes
security = user
domain logons = yes
admin users = root @root Administrator @Administratoren
# add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
# add user script = /usr/sbin/useradd -m %u
# delete user script = /usr/sbin/userdel -r %u
# add group script = /usr/sbin/groupadd %g
# delete group script = /usr/sbin/groupdel %g
# 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/gpasswd -g '%g' '%u'
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
# logon path = \\%L\profiles\%u
logon home = \\%L\%u
logon drive = u:
logon script =
wins support = yes
passdb backend = ldapsam:ldap://localhost
ldap ssl = no
ldap suffix = dc=cpqriz2,dc=int
ldap admin dn = cn=admin,dc=cpqriz2,dc=int
ldap user suffix = ou=people
ldap group suffix = ou=group
ldap machine suffix = ou=people
ldap delete dn = yes
ldap passwd sync = yes

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
path = /daten/home/%u
create mask = 0770
directory mask = 0770

#[home]
# comment = Persoenliche Verzeichnisse
# valid users = root @root
# browseable = Yes
# read only = No
# path = /daten/userdaten
# create mask = 0770
## directory mask = 0770
#
#[profiles]
# comment = Network Profiles Service
# path = /daten/profiles
# read only = No
# store dos attributes = Yes
# create mask = 0700
# directory mask = 0700
#
#[public]
# comment = Daten
# path = /daten/public
# read only = No
# valid users = @root @ldap-sin
# create mask = 0770
# directory mask = 0770
# browsable = yes
# veto files =
# hide files =


[netlogon]
comment = Netlogon
path = /daten/netlogon
browsable = no

#[pdf]
# comment = PDF creator
# path = /var/tmp
# printable = Yes
# print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
# create mask = 0600

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

#[print$]
# comment = Printer Drivers
# path = /var/lib/samba/drivers
# write list = @ntadmin root
# force group = ntadmin
# create mask = 0664
# directory mask = 0775

LDAP habe ich so konfiguriert:
/etc/openldap/slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast.schema
include /etc/openldap/schema/samba3.schema
# Define global ACLs to disable default read access.



# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args

# Load dynamic backend modules:
modulepath /usr/lib/openldap/modules
# moduleload back_ldap.la
# moduleload back_meta.la
# moduleload back_monitor.la
# moduleload back_perl.la

# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access to user password
# Allow anonymous users to authenticate
# Allow read access to everything else
# Directives needed to implement policy:
#access to dn.base=""
# by * read
#
#access to dn.base="cn=Subschema"
# by * read
#
#access to attr=userPassword,userPKCS12,sambaLMPassword,sambaNTPassword
# by dn="cn=Administrator,dc=cpqriz2,dc=int" write
# by self write
# by anonymous auth
# by * none
#
#access to attr=shadowLastChange
# by self write
# by * read
#
access to *
by dn="cn=admin,dc=cpqriz2,dc=int" write
by self write
by * read

# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn. (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# bdb database definitions
#######################################################################

loglevel 512
TLSCertificateFile /etc/ssl/servercerts/servercert.pem
TLSCACertificatePath /etc/ssl/certs/
TLSCertificateKeyFile /etc/ssl/servercerts/serverkey.pem
database bdb
suffix "dc=cpqriz2,dc=int"
rootdn "cn=admin,dc=cpqriz2,dc=int"
#rootpw "{ssha}oKAnsFlCsKZHaXcUe9NQ1Ue2LPpZRFJNVQ=="
rootpw "{ssha}5e4hZz48nIqKRyG+aC4LniZ9OhFEVlpUUw=="
directory /var/lib/ldap
checkpoint 1024 5
cachesize 10000
index objectClass,uidNumber,gidNumber eq
index member,mail eq,pres
index cn,displayname,uid,sn,givenname sub,eq,pres
index memberUid eq
index ou eq
index sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq
index default sub
lastmod on

und den LDAP-Client ist so konfiguriert:

# This is the configuration file for the LDAP nameservice
# switch library, the LDAP PAM module and the shadow package.
#

# Your LDAP server. Must be resolvable without using LDAP.
host localhost

# The distinguished name of the search base.
base dc=cpqriz2,dc=int

# The LDAP version to use (defaults to 3
# if supported by client library)
ldap_version 3

# The distinguished name to bind to the server with.
# Optional: default is to bind anonymously.
binddn cn=admin,dc=cpqriz2,dc=int

# The credentials to bind with.
# Optional: default is no credential.
bindpw kennwort

# The distinguished name to bind to the server with
# if the effective user ID is root. Password is
# stored in /etc/ldap.secret (mode 600)
#rootbinddn cn=Manager,dc=example,dc=com

# The port.
# Optional: default is 389.
port 389

# The search scope.
scope sub
#scope one
#scope base

# Search timelimit
#timelimit 30

# Bind timelimit
#bind_timelimit 30

# Idle timelimit; client will close connections
# (nss_ldap only) if the server has not been contacted
# for the number of seconds specified below.
#idle_timelimit 3600

# Filter to AND with uid=%s
#pam_filter objectclass=account

# The user ID attribute (defaults to uid)
#pam_login_attribute uid

# Search the root DSE for the password policy (works
# with Netscape Directory Server)
#pam_lookup_policy yes

# Check the 'host' attribute for access control
# Default is no; if set to yes, and user has no
# value for the host attribute, and pam_ldap is
# configured for account management (authorization)
# then the user will not be allowed to login.
#pam_check_host_attr yes

# Group to enforce membership of
#pam_groupdn cn=PAM,ou=Groups,dc=padl,dc=com

# Group member attribute
#pam_member_attribute uniquemember

# Specify a minium or maximum UID number allowed
#pam_min_uid 0
#pam_max_uid 0

# Template login attribute, default template user
# (can be overriden by value of former attribute
# in user's entry)
#pam_login_attribute userPrincipalName
#pam_template_login_attribute uid
#pam_template_login nobody

# Do not hash the password at all; presume
# the directory server will do it, if
# necessary. This is the default.
pam_password md5

# Remove old password first, then update in
# cleartext. Necessary for use with Novell
# Directory Services (NDS)
#pam_password nds

# Update Active Directory password, by
# creating Unicode password and updating
# unicodePwd attribute.
#pam_password ad

# Use the OpenLDAP password change
# extended operation to update the password.
#pam_password exop

# Redirect users to a URL or somesuch on password
# changes.
#pam_password_prohibit_message Please visit http://internal to change your password.

# RFC2307bis naming contexts
# Syntax:
# nss_base_XXX base?scope?filter
# where scope is {base,one,sub}
# and filter is a filter to be &'d with the
# default filter.
# You can omit the suffix eg:
# nss_base_passwd ou=People,
# to append the default base DN but this
# may incur a small performance impact.
nss_base_passwd ou=people,dc=cpqriz2,dc=int?one
nss_base_shadow ou=people,dc=cpqriz2,dc=int?one
nss_base_group ou=group,dc=cpqriz2,dc=int?one
#nss_base_hosts ou=people,dc=cpqriz2,dc=int?one
#nss_base_services ou=Services,dc=padl,dc=com?one
#nss_base_networks ou=Networks,dc=padl,dc=com?one
#nss_base_protocols ou=Protocols,dc=padl,dc=com?one
#nss_base_rpc ou=Rpc,dc=padl,dc=com?one
#nss_base_ethers ou=Ethers,dc=padl,dc=com?one
#nss_base_netmasks ou=Networks,dc=padl,dc=com?ne
#nss_base_bootparams ou=Ethers,dc=padl,dc=com?one
#nss_base_aliases ou=Aliases,dc=padl,dc=com?one
#nss_base_netgroup ou=Netgroup,dc=padl,dc=com?one

# attribute/objectclass mapping
# Syntax:
#nss_map_attribute rfc2307attribute mapped_attribute
#nss_map_objectclass rfc2307objectclass mapped_objectclass

# configure --enable-nds is no longer supported.
# For NDS now do:
#nss_map_attribute uniqueMember member

# configure --enable-mssfu-schema is no longer supported.
# For MSSFU now do:
#nss_map_objectclass posixAccount User
#nss_map_attribute uid msSFUName
#nss_map_attribute uniqueMember posixMember
#nss_map_attribute userPassword msSFUPassword
#nss_map_attribute homeDirectory msSFUHomeDirectory
#nss_map_objectclass posixGroup Group
#pam_login_attribute msSFUName
#pam_filter objectclass=User
#pam_password ad

# configure --enable-authpassword is no longer supported
# For authPassword support, now do:
#nss_map_attribute userPassword authPassword
#pam_password nds

# For IBM SecureWay support, do:
#nss_map_objectclass posixAccount aixAccount
#nss_map_attribute uid userName
#nss_map_attribute gidNumber gid
#nss_map_attribute uidNumber uid
#nss_map_attribute userPassword passwordChar
#nss_map_objectclass posixGroup aixAccessGroup
#nss_map_attribute cn groupName
#nss_map_attribute uniqueMember member
#pam_login_attribute userName
#pam_filter objectclass=aixAccount
#pam_password clear

# Netscape SDK LDAPS
#ssl on

# Netscape SDK SSL options
#sslpath /etc/ssl/certs/cert7.db

# OpenLDAP SSL mechanism
# start_tls mechanism uses the normal LDAP port, LDAPS typically 636
ssl no
nss_map_attribute uniqueMember member
pam_filter objectclass=posixAccount
#ssl on

# OpenLDAP SSL options
# Require and verify server certificate (yes/no)
# Default is "no"
#tls_checkpeer yes

# CA certificates for server certificate verification
# At least one of these are required if tls_checkpeer is "yes"
#tls_cacertfile /etc/ssl/ca.cert
#tls_cacertdir /etc/ssl/certs

# SSL cipher suite
# See man ciphers for syntax
#tls_ciphers TLSv1

# Client certificate and key
# Use these, if your server requires client authentication.
#tls_cert
#tls_key

Hat jemand eine Idee was ich falsch mache?

Ich hoffe, dass mir jemand weiterhelfen kann. Recht herzlichen Dank.

lG

Robert
 
Hi,

nach der Installation habe ich mit Yast ein Onlineupdate durchgeführt. Leider habe ich nicht überprüft, welche Pakete upgedatet wurden.

Samba ohne LDAP funktioniert. Das habe ich getestet. Sobald ich die LDAP Anweisungen aus der smb.conf entferne läuft der Sambaserver sauber dahin.

Vielleicht gibt es ja einen Softwarebug???

lG

Robert
 
Hi,

ich glaube ich habe das Problem gelöst. Scheinbar gibt es einen Paketfehler in Version 3.0.9 von SuSE. Ich habe das 3.0.4 Paket installiert und nun läuft Samba mit LDAP. Bin ja gespannt, wenn ich weiter konfiguriere ....

Ich bin ziehmlich sauer auf die SuSE.... :x

lG

Robert
 
Oben