Seite 1 von 1

5, 'WNetAddConnection2', 'Zugriff verweigert'

Verfasst: 21 Aug 2014, 14:25
von r4a5a88
Hi

ich habe ein Problem
vor ein paar Tagen habe ich den Debian Server geupdatet.
und jetz funktioniert OPSI nicht mehr
Die Clients zeigen mir 5, 'WNetAddConnection2', 'Zugriff verweigert' an
Die log
[5] [Aug 21 14:19:32] [ event processing gui_startup{installation_pending}] Updating action processor (EventProcessing.pyo|401)
[5] [Aug 21 14:19:32] [ event processing gui_startup{installation_pending}] Mounting depot share smb://ana-serv-02/opsi_depot (EventProcessing.pyo|369)
[6] [Aug 21 14:19:32] [ event processing gui_startup{installation_pending}] Added depot 'ana-serv-02' to trusted domains (EventProcessing.pyo|378)
[5] [Aug 21 14:19:32] [ event processing gui_startup{installation_pending}] Mounting '\\ana-serv-02\opsi_depot' to 'q:' (Windows.pyo|670)
[3] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Failed to mount '\\ana-serv-02\opsi_depot': (5, 'WNetAddConnection2', 'Zugriff verweigert') (Windows.pyo|683)
[3] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Failed to update action processor: Failed to mount '\\ana-serv-02\opsi_depot': (5, 'WNetAddConnection2', 'Zugriff verweigert') (EventProcessing.pyo|544)
[5] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Starting action processor in session '1' on desktop 'winlogon' (EventProcessing.pyo|811)
[6] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Running command C:\Program Files (x86)\opsi.org\opsi-client-agent\action_processor_starter.exe "cip-ana-08.dmed.local" "*** confidential ***" "4441" "c:\\tmp\\opsiclientd.log" "6" "smb://ana-serv-02/opsi_depot" "q:" "pcpatch" "*** confidential ***" "1" "winlogon" "\"C:\Program Files (x86)\opsi.org\opsi-client-agent\\opsi-winst\\winst32.exe\" /opsiservice \"https://129.206.229.84:4447/rpc\" /clientid cip-ana-08.dmed.local /username cip-ana-08.dmed.local /password *** confidential *** " 10800 "" "" false in session '1' on desktop 'winlogon' (EventProcessing.pyo|301)
[6] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Searching pids of process name winlogon.exe (session id: 1) (Windows.pyo|1335)
[6] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Found process winlogon.exe with matching name (pid 500, session 1) (Windows.pyo|1357)
[5] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Executing: 'C:\Program Files (x86)\opsi.org\opsi-client-agent\action_processor_starter.exe "cip-ana-08.dmed.local" "*** confidential ***" "4441" "c:\\tmp\\opsiclientd.log" "6" "smb://ana-serv-02/opsi_depot" "q:" "pcpatch" "*** confidential ***" "1" "winlogon" "\"C:\Program Files (x86)\opsi.org\opsi-client-agent\\opsi-winst\\winst32.exe\" /opsiservice \"https://129.206.229.84:4447/rpc\" /clientid cip-ana-08.dmed.local /username cip-ana-08.dmed.local /password *** confidential *** " 10800 "" "" false' in session '1' on desktop 'winsta0\winlogon' (Windows.pyo|1514)
[6] [Aug 21 14:19:49] [ event processing gui_startup{installation_pending}] Process startet, pid: 2820 (Windows.pyo|1517)
[6] [Aug 21 14:19:50] [ event processing gui_startup{installation_pending}] Waiting for process ending: 2820 (timeout: 0 seconds) (Windows.pyo|1520)
[6] [Aug 21 14:19:51] [ control server ] Worker <ocdlib.ControlServer.WorkerOpsiclientdJsonRpc instance at 0x022D9288> started processing (Worker.pyo|244)
[5] [Aug 21 14:19:51] [ control server ] New session created (Session.pyo|179)
[5] [Aug 21 14:19:51] [ control server ] Authorization request from cip-ana-08.dmed.local@127.0.0.1 (application: opsi jsonrpc module version 4.0.2) (ControlServer.pyo|144)
[5] [Aug 21 14:19:51] [ opsiclientd ] -----> Executing: backend_getInterface() (JsonRpc.pyo|123)
[6] [Aug 21 14:19:51] [ opsiclientd ] Got result (JsonRpc.pyo|131)
Bei einem anderem Opsi hab ich auch geupdatet und hatte keine Probleme
Könnte ihr mir bitte helfen

Das PcPatch passwort hab ich schon gesetzt und nochmal gesetzt

Re: 5, 'WNetAddConnection2', 'Zugriff verweigert'

Verfasst: 21 Aug 2014, 15:55
von ueluekmen
Hi,

bei sowas ist immer ein guter Test, wenn du versuchst den Share manuell einbinden? Geht das?

Re: 5, 'WNetAddConnection2', 'Zugriff verweigert'

Verfasst: 22 Aug 2014, 08:49
von r4a5a88
Danke für den Tipp
ich habs versucht aber bekam ein Systemfehler 5
:(
Das was so komisch ist, ist das es noch vor ein paar Tagen funktioniert hat

Der andere OPSI funktioniert perfekt

Re: 5, 'WNetAddConnection2', 'Zugriff verweigert'

Verfasst: 22 Aug 2014, 10:04
von n.wenselowski
Hallo,

wurde bereits ein opsi-setup --auto-configure-samba ausgeführt?
Eventuell vorher mal die smb.conf um opsi-spezifische Stellen bereinigen und es dann laufen lassen.


Gruß

Niko

Re: 5, 'WNetAddConnection2', 'Zugriff verweigert'

Verfasst: 22 Aug 2014, 10:36
von r4a5a88
Die sache ist die
Der OPSI hat noch funktioniert vor ein paar Tagen
der samb conf befehl hat leider nicht viel geholfen

Dann hab ich geupdatet
Danach hatte ich Winbind Probleme
Danach den Fehler 5

In der Samba log.all steht , dass pcpatch keine Zugriffsrechte hat
[2014/08/22 10:33:51.109378, 3] smbd/password.c:298(register_existing_vuid)
register_existing_vuid: User name: pcpatch Real name:
[2014/08/22 10:33:51.109434, 3] smbd/password.c:308(register_existing_vuid)
register_existing_vuid: UNIX uid 992 is UNIX user pcpatch, and will be vuid 105
[2014/08/22 10:33:51.109530, 3] smbd/password.c:238(register_homes_share)
Adding homes service for user 'pcpatch' using home directory: '/var/lib/opsi'
[2014/08/22 10:33:51.110815, 3] smbd/process.c:1662(process_smb)
Transaction 40 of length 92 (0 toread)
[2014/08/22 10:33:51.110880, 3] smbd/process.c:1467(switch_message)
switch message SMBtconX (pid 9236) conn 0x0
[2014/08/22 10:33:51.110960, 3] lib/access.c:338(allow_access)
Allowed connection from 129.206.88.237 (129.206.88.237)
[2014/08/22 10:33:51.111022, 3] ../libcli/security/dom_sid.c:208(dom_sid_parse_endp)
string_to_sid: SID root is not in a valid format
[2014/08/22 10:33:51.111185, 3] passdb/lookup_sid.c:1754(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for root
[2014/08/22 10:33:51.111302, 3] ../libcli/security/dom_sid.c:208(dom_sid_parse_endp)
string_to_sid: SID sms is not in a valid format
[2014/08/22 10:33:51.111485, 3] winbindd/winbindd_lookupname.c:69(winbindd_lookupname_send)
lookupname Unix User+sms
[2014/08/22 10:33:51.114346, 3] ../libcli/security/dom_sid.c:208(dom_sid_parse_endp)
string_to_sid: SID @cip-admin is not in a valid format
[2014/08/22 10:33:51.114568, 3] winbindd/winbindd_lookupname.c:69(winbindd_lookupname_send)
lookupname Unix Group+cip-admin
[2014/08/22 10:33:51.116287, 3] winbindd/winbindd_getgrnam.c:56(winbindd_getgrnam_send)
getgrnam cip-admin
[2014/08/22 10:33:51.123216, 3] ../libcli/security/dom_sid.c:208(dom_sid_parse_endp)
string_to_sid: SID @DMED.LOCAL+cip-admin is not in a valid format
[2014/08/22 10:33:51.123339, 3] winbindd/winbindd_lookupname.c:69(winbindd_lookupname_send)
lookupname DMED.LOCAL+cip-admin
[2014/08/22 10:33:51.124469, 3] ../libcli/security/dom_sid.c:208(dom_sid_parse_endp)
string_to_sid: SID DMED.LOCAL+sms is not in a valid format
[2014/08/22 10:33:51.124562, 3] winbindd/winbindd_lookupname.c:69(winbindd_lookupname_send)
lookupname DMED.LOCAL+sms
[2014/08/22 10:33:51.125596, 2] smbd/service.c:627(create_connection_session_info)
user 'pcpatch' (from session setup) not permitted to access this share (IPC$)
[2014/08/22 10:33:51.125653, 1] smbd/service.c:805(make_connection_snum)
create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
[2014/08/22 10:33:51.125732, 3] smbd/error.c:81(error_packet_set)
error packet at smbd/reply.c(803) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED
[2014/08/22 10:33:51.126813, 3] smbd/process.c:1662(process_smb)
Transaction 41 of length 43 (0 toread)
[2014/08/22 10:33:51.126883, 3] smbd/process.c:1467(switch_message)
switch message SMBulogoffX (pid 9236) conn 0x0
[2014/08/22 10:33:51.126989, 3] smbd/reply.c:2096(reply_ulogoffX)
ulogoffX vuid=105
[2014/08/22 10:34:01.193282, 3] winbindd/winbindd_misc.c:384(winbindd_interface_version)
[ 9373]: request interface version
[2014/08/22 10:34:01.193508, 3] winbindd/winbindd_misc.c:417(winbindd_priv_pipe_dir)
[ 9373]: request location of privileged pipe
[2014/08/22 10:34:01.193756, 3] winbindd/winbindd_getpwnam.c:56(winbindd_getpwnam_send)

Re: 5, 'WNetAddConnection2', 'Zugriff verweigert'

Verfasst: 22 Aug 2014, 12:53
von r4a5a88
GELÖST

ich habs gelöst
in der smb.conf war beim update wohl eine Klammer gelöscht worden
und ich hatte es die ganze zeit übersehen
:oops:

Danke nochmal für eure hilfe