Ubuntu 10.04.1 LTS + Samba + LDAP domein niet te joinen

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Hallo Allemaal,

Ik heb de afgelopen weken behoorlijk lopen stoeien met de installatie van een linux based pdc met samba en openldap, na veel zoeken heb ik een howto gevonden welke me in ieder geval een werkende samba en ldapserver heeft opgeleverd. Ik zit nu echter met het volgende probleem, waarop ik nu al bijna een week vast zit.

Na het configureren van de server volgends de howto: http://tuxnetworks.blogsp...-on-1004-lucid-short.html wil ik een windows XP SP3 pc het nieuwe domein laten joinen. Ik heb inmiddels op de server ook phpldapadmin geinstalleerd waarop ik sucsesvol kan inloggen op de ldap omgeving. Ik zie hierin dat de users correct aangemaakt zijn.

Verder zie ik NA het proberen te joinen een computer account in de ou=Computers, Bij het joinen van het domein met het juiste user/wachtwoord combinatie krijg ik de melding toegang geweigerd. probeer ik dit bewust met een foutieve, krijg ik de melding dat de user niet gevonden kan worden.

Ik maak gebruik van Ubuntu 10.04.1 LTS, Samba 3.4.7.

Hieronder mijn smb.conf:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[global]
        # Domain name ..
        workgroup = AGENTS.
        # Server name - as seen by Windows PCs ..
        netbios name = agentsrv01
        # Be a PDC ..
        domain logons = Yes
        domain master = Yes
        # Be a WINS server ..
        wins support = true

        obey pam restrictions = Yes
        dns proxy = No
        os level = 35
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        pam password change = Yes

        # Allows users on WinXP PCs to change their password when they press Ctrl-Alt-Del
        unix password sync = no
        ldap passwd sync = yes

        # Printing from PCs will go via CUPS ..
        load printers = yes
        printing = cups
        printcap name = cups

        # Use LDAP for Samba user accounts and groups ..
        passdb backend = ldapsam:ldap://agentsrv01.agents.local/

        # This must match init.ldif ..
        ldap suffix = dc=agents,dc=local
        # The password for cn=ccbbeheer MUST be stored in /etc/samba/secrets.tdb
        # This is done by running 'sudo smbpasswd -w'.
        ldap admin dn = cn=beheer,dc=agents,dc=local

        # 4 OUs that Samba uses when creating user accounts, computer accounts, etc.
        # (Because we are using smbldap-tools, call them 'Users', 'Computers', etc.)
        ldap machine suffix = ou=Computers
        ldap user suffix = ou=Users
        ldap group suffix = ou=Groups
        ldap idmap suffix = ou=Idmap
        # Samba and LDAP server are on the same server in this example.
        ldap ssl = no

        # Scripts for Samba to use if it creates users, groups, etc.
        add user script = /usr/sbin/smbldap-useradd -m '%u'
        delete user script = /usr/sbin/smbldap-userdel %u
        add group script = /usr/sbin/smbldap-groupadd -p '%g'
        delete group script = /usr/sbin/smbldap-groupdel '%g'
        add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
        delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'

        # Script that Samba users when a PC joins the domain ..
        # (when changing 'Computer Properties' on the PC)
        add machine script = /usr/sbin/smbldap-useradd -w '%u'

        # Values used when a new user is created ..
        # (Note: '%L' does not work properly with smbldap-tools 0.9.4-1)
    logon drive =
        logon home =
        logon path =
        logon script = allusers.bat


        # This is required for Windows XP client ..
        server signing = auto
        server schannel = Auto

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        admin users = root
        guest ok = Yes
        browseable = No
        logon script = allusers.bat

[Profiles]
        comment = Roaming Profile Share
        # would probably change this to elsewhere in a production system ..
        path = /var/lib/samba/profiles
        read only = No
        profile acls = Yes
        browsable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        use client driver = Yes
        create mask = 0600
        guest ok = Yes
        printable = Yes
        browseable = No
        public = yes
        writable = yes
        admin users = root
        write list = root

[print$]
        comment = Printer Drivers Share
        path = /var/lib/samba/printers
        write list = root
        create mask = 0664
        directory mask = 0775
        admin users = root

[shared]
        writeable = yes
        path = /var/lib/samba/shared
    public = yes
    browseable = yes


[archive]
        path = /exports/archive
        browseable = yes
        create mask = 755
        directory mask = 755
        read only = no


Hieronder mijn backend.ldif:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Load dynamic backend modules
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /usr/lib/ldap
olcModuleload: back_hdb

# Database settings
dn: olcDatabase=hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcSuffix: dc=agents,dc=local
olcDbDirectory: /var/lib/ldap
olcRootDN: cn=beheer,dc=agents,dc=local
olcRootPW: **
olcDbConfig: set_cachesize 0 2097152 0
olcDbConfig: set_lk_max_objects 1500
olcDbConfig: set_lk_max_locks 1500
olcDbConfig: set_lk_max_lockers 1500
olcDbIndex: objectClass eq
olcLastMod: TRUE
olcDbCheckpoint: 512 30
olcAccess: to attrs=userPassword by dn="cn=beheer,dc=agents,dc=local" write by anonymous auth by self write by * none
olcAccess: to attrs=shadowLastChange by self write by * read
olcAccess: to dn.base="" by * read
olcAccess: to * by dn="cn=beheer,dc=agents,dc=local" write by * read


In de directory /var/log/samba/ wordt een bestand log.ws24 aangemaakt, waarin het volgende staat na join:
code:
1
2
3
4
5
6
7
root@AGENTSRV01:/var/log/samba# cat log.ws24
[2011/02/07 02:26:57,  0] lib/util_sock.c:738(write_data)
[2011/02/07 02:26:57,  0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2011/02/07 02:26:57,  0] smbd/process.c:62(srv_send_smb)
  Error writing 4 bytes to client. -1. (Transport endpoint is not connected)


Verder wordt er in diezelfde directory een bestand aangemaakt log.[ipadress] welk geheel leeg is.

Het moet wel haast iets kleins zijn, ik staar me er alleen blind op, waardoor ik het over het hoofd zie.

Ik hoop dat jullie het wel zien!

Greetz
Hein

[ Voor 5% gewijzigd door Verwijderd op 07-02-2011 09:10 ]


Acties:
  • 0 Henk 'm!

  • DutchNutcase
  • Registratie: Augustus 2005
  • Niet online

DutchNutcase

E = mc^2

Ik heb een zelfde setup werkend. Als jij je configs tussen code-tags kunt zetten (dat leest makkelijker voor mij), zal ik vanmiddag even kijken of ik kan vinden of je iets verkeerd geconfigureerd hebt. Ik ben indertijd tegen exact hetzelfde probleem aangelopen, maar nu weet ik alleen de oplossing niet meer zo.

Ik ga vanmiddag even voor je kijken.

Luctor et Emergo || specs


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
done :)

Ik hoop dat je iets vind..

Greetz
Hein

Acties:
  • 0 Henk 'm!

  • DutchNutcase
  • Registratie: Augustus 2005
  • Niet online

DutchNutcase

E = mc^2

Zou je ook je /etc/smbldap-tools/smbldap.conf kunnen posten. Tot nu toe kan ik slechts een verschil vinden. Dat is
code:
1
passdb backend = ldapsam:"ldap://localhost:389"

Maar ik verwacht niet dat de quotes voor problemen zorgen.

Luctor et Emergo || specs


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Bij deze:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# $Source: /opt/cvs/samba/smbldap-tools/configure.pl,v
# smbldap-tools.conf : Q & D configuration file for smbldap-tools

#  This code was developped by IDEALX (http://IDEALX.org/) and
#  contributors (their names can be found in the CONTRIBUTORS file).
#
#                 Copyright (C) 2001-2002 IDEALX
#
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
#  USA.

#  Purpose :
#       . be the configuration file for all smbldap-tools scripts

##############################################################################
#
# General Configuration
#
##############################################################################

# Put your own SID. To obtain this number do: "net getlocalsid".
# If not defined, parameter is taking from "net getlocalsid" return
SID="S-1-5-21-870272745-1415313665-825758065"

# Domain name the Samba server is in charged.
# If not defined, parameter is taking from smb.conf configuration file
# Ex: sambaDomain="IDEALX-NT"
sambaDomain="AGENTS"

##############################################################################
#
# LDAP Configuration
#
##############################################################################

# Notes: to use to dual ldap servers backend for Samba, you must patch
# Samba with the dual-head patch from IDEALX. If not using this patch
# just use the same server for slaveLDAP and masterLDAP.
# Those two servers declarations can also be used when you have
# . one master LDAP server where all writing operations must be done
# . one slave LDAP server where all reading operations must be done
#   (typically a replication directory)

# Slave LDAP server
# Ex: slaveLDAP=127.0.0.1
# If not defined, parameter is set to "127.0.0.1"
slaveLDAP="agentsrv01.agents.local"

# Slave LDAP port
# If not defined, parameter is set to "389"
slavePort="389"

# Master LDAP server: needed for write operations
# Ex: masterLDAP=127.0.0.1
# If not defined, parameter is set to "127.0.0.1"
masterLDAP="agentsrv01.agents.local"

# Master LDAP port
# If not defined, parameter is set to "389"
masterPort="389"

# Use TLS for LDAP
# If set to 1, this option will use start_tls for connection
# (you should also used the port 389)
# If not defined, parameter is set to "1"
ldapTLS="0"

# How to verify the server's certificate (none, optional or require)
# see "man Net::LDAP" in start_tls section for more details
verify=""

# CA certificate
# see "man Net::LDAP" in start_tls section for more details
cafile=""

# certificate to use to connect to the ldap server
# see "man Net::LDAP" in start_tls section for more details
clientcert=""

# key certificate to use to connect to the ldap server
# see "man Net::LDAP" in start_tls section for more details
clientkey=""

# LDAP Suffix
# Ex: suffix=dc=IDEALX,dc=ORG
suffix="dc=agents,dc=local"

# Where are stored Users
# Ex: usersdn="ou=Users,dc=IDEALX,dc=ORG"
# Warning: if 'suffix' is not set here, you must set the full dn for usersdn
usersdn="ou=Users,${suffix}"

# Where are stored Computers
# Ex: computersdn="ou=Computers,dc=IDEALX,dc=ORG"
# Warning: if 'suffix' is not set here, you must set the full dn for computersdn
computersdn="ou=Computers,${suffix}"

# Where are stored Groups
# Ex: groupsdn="ou=Groups,dc=IDEALX,dc=ORG"
# Warning: if 'suffix' is not set here, you must set the full dn for groupsdn
groupsdn="ou=Groups,${suffix}"

# Where are stored Idmap entries (used if samba is a domain member server)
# Ex: groupsdn="ou=Idmap,dc=IDEALX,dc=ORG"
# Warning: if 'suffix' is not set here, you must set the full dn for idmapdn
idmapdn="ou=Idmap,${suffix}"

# Where to store next uidNumber and gidNumber available for new users and groups
# If not defined, entries are stored in sambaDomainName object.
# Ex: sambaUnixIdPooldn="sambaDomainName=${sambaDomain},${suffix}"
# Ex: sambaUnixIdPooldn="cn=NextFreeUnixId,${suffix}"
sambaUnixIdPooldn="sambaDomainName=AGENTS,${suffix}"

# Default scope Used
scope="sub"

# Unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA, CLEARTEXT)
hash_encrypt="SSHA"

# if hash_encrypt is set to CRYPT, you may set a salt format.
# default is "%s", but many systems will generate MD5 hashed
# passwords if you use "$1$%.8s". This parameter is optional!
crypt_salt_format=""

##############################################################################
#
# Unix Accounts Configuration
#
##############################################################################

# Login defs
# Default Login Shell
# Ex: userLoginShell="/bin/bash"
userLoginShell="/bin/bash"

# Home directory
# Ex: userHome="/home/%U"
userHome="/home/%U"

# Default mode used for user homeDirectory
userHomeDirectoryMode="700"

# Gecos
userGecos="System User"

# Default User (POSIX and Samba) GID
defaultUserGid="513"

# Default Computer (Samba) GID
defaultComputerGid="515"

# Skel dir
skeletonDir="/etc/skel"

# Default password validation time (time in days) Comment the next line if
# you don't want password to be enable for defaultMaxPasswordAge days (be
# careful to the sambaPwdMustChange attribute's value)
defaultMaxPasswordAge="45"

##############################################################################
#
# SAMBA Configuration
#
##############################################################################

# The UNC path to home drives location (%U username substitution)
# Just set it to a null string if you want to use the smb.conf 'logon home'
# directive and/or disable roaming profiles
# Ex: userSmbHome="\\PDC-SMB3\%U"
userSmbHome=""

# The UNC path to profiles locations (%U username substitution)
# Just set it to a null string if you want to use the smb.conf 'logon path'
# directive and/or disable roaming profiles
# Ex: userProfile="\\PDC-SMB3\profiles\%U"
userProfile=""

# The default Home Drive Letter mapping
# (will be automatically mapped at logon time if home directory exist)
# Ex: userHomeDrive="H:"
userHomeDrive=""

# The default user netlogon script name (%U username substitution)
# if not used, will be automatically username.cmd
# make sure script file is edited under dos
# Ex: userScript="startup.cmd" # make sure script file is edited under dos
userScript="allusers.bat"

# Domain appended to the users "mail"-attribute
# when smbldap-useradd -M is used
# Ex: mailDomain="idealx.com"
mailDomain=""

##############################################################################
#
# SMBLDAP-TOOLS Configuration (default are ok for a RedHat)
#
##############################################################################

# Allows not to use smbpasswd (if with_smbpasswd == 0 in smbldap_conf.pm) but
# prefer Crypt::SmbHash library
with_smbpasswd="0"
smbpasswd="/usr/bin/smbpasswd"

# Allows not to use slappasswd (if with_slappasswd == 0 in smbldap_conf.pm)
# but prefer Crypt:: libraries
with_slappasswd="0"
slappasswd="/usr/sbin/slappasswd"

# comment out the following line to get rid of the default banner
# no_banner="1"

Acties:
  • 0 Henk 'm!

  • DutchNutcase
  • Registratie: Augustus 2005
  • Niet online

DutchNutcase

E = mc^2

Ik kan zo 1-2-3 niets vinden. Heb je deze guide stap voor stap gevolgd tot het eind? Weet je zeker dat alle wachtwoorden over kloppen?

Mocht ik tussen nu en een paar uur niets verzinnen, dan zal ik m'n complete config plaatsen. Misschien dat je dan zelf iets tegenkomt.

Luctor et Emergo || specs


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Ik heb deze guide inderdaad al meerdere keren tot op de letter gevolgd, zonder resultaat helaas :(

Acties:
  • 0 Henk 'm!

  • fikkie_84
  • Registratie: Januari 2004
  • Laatst online: 09-09 14:05
Kun je eens proberen om eerst een computeraccount aan te maken op je server en dan pas via windows met deze computer joinen.
Controleer ook zeker of je domein sid overeenkomt met de sid in je computeraccounts.

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Als ik een computer account wil toevoegen krijg ik het volgende:

code:
1
2
3
4
5
root@AGENTSRV01:/var/log/samba# smbpasswd -a -m testgebakje
Error looking for next uid in sambaDomainName=AGENTS,dc=agents,dc=local:No such object at /usr/share/perl5/smbldap_tools.pm line 1174, <DATA> line 466.
_samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w 'testgebakje$'' gave 127
Failed to add entry for user testgebakje$.
root@AGENTSRV01:/var/log/samba#


Als ik vervolgens het commando uitvoer wat fails:

code:
1
2
3
root@AGENTSRV01:/var/log/samba# /usr/sbin/smbldap-useradd -w 'testgebakje$'
Error looking for next uid in sambaDomainName=AGENTS,dc=agents,dc=local:No such object at /usr/share/perl5/smbldap_tools.pm line 1174, <DATA> line 466.
root@AGENTSRV01:/var/log/samba#


In de syslog zie ik:

code:
1
2
3
4
5
6
7
8
9
Feb  7 17:35:12 AGENTSRV01 slapd[678]: Entry (uid=ccbbeheer,ou=Users,dc=agents,dc=local), attribute 'userPassword' not allowed
Feb  7 17:35:12 AGENTSRV01 slapd[678]: entry failed schema check: attribute 'userPassword' not allowed
Feb  7 17:39:31 AGENTSRV01 slapd[678]: Entry (uid=ccbbeheer,ou=Users,dc=agents,dc=local), attribute 'userPassword' not allowed
Feb  7 17:39:31 AGENTSRV01 slapd[678]: entry failed schema check: attribute 'userPassword' not allowed
Feb  7 17:39:50 AGENTSRV01 slapd[678]: Entry (uid=ccbbeheer,ou=Users,dc=agents,dc=local), attribute 'userPassword' not allowed
Feb  7 17:39:50 AGENTSRV01 slapd[678]: entry failed schema check: attribute 'userPassword' not allowed
Feb  7 17:42:57 AGENTSRV01 slapd[678]: <= bdb_equality_candidates: (displayName) not indexed
Feb  7 17:42:57 AGENTSRV01 slapd[678]: <= bdb_equality_candidates: (cn) not indexed
                                                                 xed


Wellicht schijnt dit een nieuw licht op de zaak.

[ Voor 100% gewijzigd door Verwijderd op 07-02-2011 16:55 . Reden: meer info! ]


Acties:
  • 0 Henk 'm!

  • fikkie_84
  • Registratie: Januari 2004
  • Laatst online: 09-09 14:05
Verwijderd schreef op maandag 07 februari 2011 @ 16:48:
Als ik een computer account wil toevoegen krijg ik het volgende:

code:
1
2
3
4
5
root@AGENTSRV01:/var/log/samba# smbpasswd -a -m testgebakje
Error looking for next uid in sambaDomainName=AGENTS,dc=agents,dc=local:No such object at /usr/share/perl5/smbldap_tools.pm line 1174, <DATA> line 466.
_samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w 'testgebakje$'' gave 127
Failed to add entry for user testgebakje$.
root@AGENTSRV01:/var/log/samba#


Als ik vervolgens het commando uitvoer wat fails:

code:
1
2
3
root@AGENTSRV01:/var/log/samba# /usr/sbin/smbldap-useradd -w 'testgebakje$'
Error looking for next uid in sambaDomainName=AGENTS,dc=agents,dc=local:No such object at /usr/share/perl5/smbldap_tools.pm line 1174, <DATA> line 466.
root@AGENTSRV01:/var/log/samba#


In de syslog zie ik:

code:
1
2
3
4
5
6
7
8
9
Feb  7 17:35:12 AGENTSRV01 slapd[678]: Entry (uid=ccbbeheer,ou=Users,dc=agents,dc=local), attribute 'userPassword' not allowed
Feb  7 17:35:12 AGENTSRV01 slapd[678]: entry failed schema check: attribute 'userPassword' not allowed
Feb  7 17:39:31 AGENTSRV01 slapd[678]: Entry (uid=ccbbeheer,ou=Users,dc=agents,dc=local), attribute 'userPassword' not allowed
Feb  7 17:39:31 AGENTSRV01 slapd[678]: entry failed schema check: attribute 'userPassword' not allowed
Feb  7 17:39:50 AGENTSRV01 slapd[678]: Entry (uid=ccbbeheer,ou=Users,dc=agents,dc=local), attribute 'userPassword' not allowed
Feb  7 17:39:50 AGENTSRV01 slapd[678]: entry failed schema check: attribute 'userPassword' not allowed
Feb  7 17:42:57 AGENTSRV01 slapd[678]: <= bdb_equality_candidates: (displayName) not indexed
Feb  7 17:42:57 AGENTSRV01 slapd[678]: <= bdb_equality_candidates: (cn) not indexed
                                                                 xed


Wellicht schijnt dit een nieuw licht op de zaak.
Je zou je smbldap.conf nog eens moeten overlopen, je krijgt (volgens mij) een foutmelding omdat je sambaDomainName= ... regel fout is of omdat deze niet geimporteerd is in je openldap backend.
heb je het commando " smbldap-populate" met succes uitgevoerd?

Acties:
  • 0 Henk 'm!

  • endeavor334
  • Registratie: Januari 2002
  • Laatst online: 12-08-2021
misschien heb je hier wat aan:
6. Error message : Error looking for next uid in sambaDomainName
view sourceprint?
1.smbldap-useradd -m -a root

Error looking for next uid in sambaDomainName=VAVAI.NET,dc=vavai,dc=net:
No such object at /usr/sbin //smbldap_tools.pm line 1174, line 466.

Solution : Change the following line sambaUnixIdPooldn on /etc/smbldap-tools to be like below :
view sourceprint?
1.sambaUnixIdPooldn="sambaDomainName=VAVAI.NET,ou=Domains,${suffix}"

[ Voor 0% gewijzigd door endeavor334 op 08-02-2011 22:34 . Reden: type in urltag ]

Voor elk probleem is er een oplossing. Dus dat is het probleem niet. De oplossing dat is het probleem.


Acties:
  • 0 Henk 'm!

  • DutchNutcase
  • Registratie: Augustus 2005
  • Niet online

DutchNutcase

E = mc^2

Als deze suggestie niet werkt moet je het maar even laten weten. Dan zal ik je mijn config posten.

Luctor et Emergo || specs


Acties:
  • 0 Henk 'm!

Verwijderd

ik vermoed dat het een samba probleem is
::::
root@AGENTSRV01:/var/log/samba# cat log.ws24
[2011/02/07 02:26:57, 0] lib/util_sock.c:738(write_data)
[2011/02/07 02:26:57, 0] lib/util_sock.c:1491(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2011/02/07 02:26:57, 0] smbd/process.c:62(srv_send_smb)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)

houd in dat hij niet naar de computer terug iets kan zeggen...


in je samba configuratie
smb ports = 139 zetten en samba herstarten

omdat windows xp daarmee connect.

[ Voor 64% gewijzigd door Verwijderd op 09-02-2011 15:46 ]


Acties:
  • 0 Henk 'm!

  • DutchNutcase
  • Registratie: Augustus 2005
  • Niet online

DutchNutcase

E = mc^2

Verwijderd schreef op woensdag 09 februari 2011 @ 15:41:
ik vermoed dat het een samba probleem is
::::
root@AGENTSRV01:/var/log/samba# cat log.ws24
[2011/02/07 02:26:57, 0] lib/util_sock.c:738(write_data)
[2011/02/07 02:26:57, 0] lib/util_sock.c:1491(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2011/02/07 02:26:57, 0] smbd/process.c:62(srv_send_smb)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)

houd in dat hij niet naar de computer terug iets kan zeggen...


in je samba configuratie
smb ports = 139 zetten en samba herstarten

omdat windows xp daarmee connect.
Het zou ook nog een aparmor probleempje kunnen zijn. Ik meen me te herinneren dat ik daar ook nog mee heb lopen klooien.

Luctor et Emergo || specs


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
9 feb. 2011 22:34 uur:
DutchNutcase schreef op woensdag 09 februari 2011 @ 16:23:
[...]


Het zou ook nog een aparmor probleempje kunnen zijn. Ik meen me te herinneren dat ik daar ook nog mee heb lopen klooien.
Dat lijkt me sterk eigenlijk, aangezien ik aparmor juist omdat hij altijd problemen geeft eraf gesodedonderd heb :)

Die oplossing van die poort lijkt me eerlijk gezegd wel wat, meer ook omdat ik dat HIER ook te horen heb gehad eigenlijk.Ik ga dan overigens voor poort 445, uitleg is HIER en HIER te vinden.

Ben mijn testservertje maar weer opnieuw aan het installen, wordt vervolgd :)

10 feb. 2011 02:30 uur:
Het werkt! Het volgende heb ik gedaan:

1: smb poort ingesteld op 139 (om het "vuile" NETBIOS te verdrijven ga ik nog proberen dit op 445 te zetten)

Foutmeldingen bij aanmaken computers weg, MAAR, nieuwe fout in syslog over het binden naar de ldap server. Google gave an answer!

2: in /etc/ldap.conf "ldapi://localhost/" vervangen voor "ldap://127.0.0.1/"

Bij het joinen van het domein kon ik nog altijd niet de gebruikersnamen bereiken, na veel gegoogle de oplossing gevonden:

3: nscd bijgeinstalleerd
4:
code:
1
getent group

5:
code:
1
getent passwd

6: reboot!

Nog altijd gaat het joinen NIET met de accounts welke op de server aanwezig waren VOOR de installatie van LDAP, de accounts welke via

code:
1
smbldap-useradd -a -m -P username


aangemaakt zijn, en vervolgens via

code:
1
smbldap-groupmod -m 'username' 'Administrators'


de juiste rechten hebben gehad, kunnen een domein joinen.

Part 1 completed, nu aan de slag met roaming profiles, homedirs, loginscripts, eventueel mail, remote installation image, en dan nog policy's.

Het nog wat te doen de aankomende weken..

[ Voor 39% gewijzigd door Verwijderd op 10-02-2011 02:43 ]

Pagina: 1