[Samba] Re: Re: Problems with testing Openldapserver
telnetlocalhost 389
Andreas Bauer
andreas_bauer at arcor.de
Thu Jun 9 01:25:10 GMT 2005
Hello!
I have done your advices, no result, the same errors:
> amd:/etc/samba # /usr/bin/ldapadd -h 127.0.0.1 -D
> "cn=admin,dc=samba,dc=junits" -x -W -f /etc/openldap/example.ldif
> Enter LDAP Password:
> ldap_bind: Invalid credentials (49)
Btw, if I restart my slapd Dämon, I get in the logfile, that slapd
stopped? - last part of log
my logs, slapd.conf, example.ldif, smb.conf.
ldaplogs:
sldap starting:
Jun 9 02:35:01 amd slapd[4373]: @(#) $OpenLDAP: slapd 2.2.15 (Jan 26 2005
16:34:33) $
abuild at fix:/usr/src/packages/BUILD/openldap-2.2.15/servers/slapd
Jun 9 02:35:01 amd slapd[4373]: bdb_initialize: Sleepycat Software:
Berkeley DB 4.2.52: (October 5, 2004)
Jun 9 02:35:01 amd slapd[4374]: slapd starting
/usr/bin/ldapadd -h 127.0.0.1 -D "cn=admin,dc=samba,dc=junits" -x -W -f
/etc/openldap/example.ldif:
Jun 9 02:35:16 amd slapd[4374]: conn=0 fd=10 ACCEPT from IP=127.0.0.1:32771
(IP=0.0.0.0:389)
Jun 9 02:35:16 amd slapd[4374]: conn=0 op=0 BIND
dn="cn=admin,dc=samba,dc=junits" method=128
Jun 9 02:35:16 amd slapd[4374]: conn=0 op=0 RESULT tag=97 err=49 text=
Jun 9 02:35:16 amd slapd[4374]: conn=0 fd=10 closed
/usr/bin/ldapadd -h 127.0.0.1 -D "cn=admin,dc=samba,dc=junits" -x -W -f
/etc/openldap/example.ldif
Jun 9 02:35:31 amd slapd[4374]: conn=1 fd=10 ACCEPT from IP=127.0.0.1:32772
(IP=0.0.0.0:389)
Jun 9 02:35:31 amd slapd[4374]: conn=1 op=0 BIND
dn="cn=admin,dc=samba,dc=junits" method=128
Jun 9 02:35:31 amd slapd[4374]: conn=1 op=0 RESULT tag=97 err=49 text=
Jun 9 02:35:31 amd slapd[4374]: conn=1 fd=10 closed
/usr/bin/ldapadd -h 127.0.0.1 -D "cn=admin,dc=samba,dc=junits" -x -W -f
/etc/openldap/example.ldif
Jun 9 02:35:41 amd slapd[4374]: conn=2 fd=10 ACCEPT from IP=127.0.0.1:32773
(IP=0.0.0.0:389)
Jun 9 02:35:41 amd slapd[4374]: conn=2 op=0 BIND
dn="cn=admin,dc=samba,dc=junits" method=128
Jun 9 02:35:41 amd slapd[4374]: conn=2 op=0 RESULT tag=97 err=49 text=
Jun 9 02:35:41 amd slapd[4374]: conn=2 fd=10 closed
Jun 9 02:35:45 amd slapd[4374]: conn=3 fd=10 ACCEPT from IP=127.0.0.1:32774
(IP=0.0.0.0:389)
Jun 9 02:35:45 amd slapd[4374]: conn=3 op=0 BIND
dn="cn=admin,dc=samba,dc=junits" method=128
Jun 9 02:35:45 amd slapd[4374]: conn=3 op=0 RESULT tag=97 err=53
text=unauthenticated bind (DN with no password) disallowed
Jun 9 02:35:45 amd slapd[4374]: conn=3 fd=10 closed
slapd restarting:
Jun 9 02:41:01 amd slapd[4385]: @(#) $OpenLDAP: slapd 2.2.15 (Jan 26 2005
16:34:33) $ abuild at fix:/usr/src/packages/BUILD/openldap-
2.2.15/servers/slapd
Jun 9 02:41:01 amd slapd[4385]: daemon: bind(8) failed errno=98 (Address
already in use)
Jun 9 02:41:01 amd slapd[4385]: daemon: bind(8) failed errno=98 (Address
already in use)
Jun 9 02:41:01 amd slapd[4385]: slapd stopped.
Jun 9 02:41:01 amd slapd[4385]: connections_destroy: nothing to destroy.
Now here are my slapd.conf, example.ldif, smb.conf
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/nis.schema
include /etc/openldap/schema/samba.schema
include /etc/openldap/schema/yast.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel 256
database ldbm
suffix "dc=samba,dc=junits"
#rootdn "cn=admin,dc=samba,dc=junits"
#rootpw {SSHA}nPsYXB7JNQ3KTuZatGCnmkCr2sDJH2dU
#rootpw secret
directory /var/lib/ldap
cachesize 40000
index cn,sn,uid,displayName pres,sub,eq
index uidNumber,gidNumber eq
index sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq
index objectClass pres,eq
index default sub
#access to dn="."dc=samba,dc=junits"
# by self write
# by * read
access to dn.subtree="dc=samba,dc=junits" attrs=cn
by * =cs break
access to attr=userPassword
by self write
by anonymous auth
by dn.base="cn=admin,dc=samba,dc=junits" write
by * none
access to *
by self write
by dn.base="cn=admin,dc=samba,dc=junits" write
by * read
example.ldif:
dn: dc=samba,dc=junits
objectclass: dcObject
objectclass: organization
o: andreas
dc: samba
dn: cn=admin,dc=samba,dc=junits
objectclass: organizationalRole
cn: admin
smb.conf:
[global]
workgroup = andreas
netbios name = amd
# server string =amd
encrypt passwords = yes
username map = /etc/samba/smbusers
update encrypted = yes
unix password sync = no
smbpasswd file = /etc/samba/smbpasswd
# enable privileges = yes
domain logons = yes
domain master = yes
local master = yes
security = user
ldap passwd sync = Yes
preferred master = yes
wins support = Yes
# assdb backend = ldapsam:ldap://127.0.0.1/
logon script = %G.bat
logon path = \\amd\%U
logon home = \\amd\profiles\%U
logon drive = H:
# ldap server = localhost
# ldap port = 389
ldap suffix = dc=samba,dc=junits
ldap admin dn=cn=admin,dc=samba,dc=junits
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Users
# ldap ssl = start tls
[homes]
comment = Home Directories
valid users = %S
browseable = Yes
writeable = Yes
[public]
path = /pub
writeable = yes
browseable = yes
Best regards
Andreas
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list