cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS running but authentication not working

mikee_cz
Champ in-the-making
Champ in-the-making
I have downloaded afresco-tomcat bundle version 1.4. After alfresco startup the CIFS server is running, netbios name registered, but I cannot pass authorization when mapping network drive.
23:10:55,318 DEBUG [org.alfresco.smb.protocol] Local domain name is DS (via JNI)
23:10:55,356 INFO  [org.alfresco.smb.protocol] CIFS server started
23:10:55,365 INFO  [org.alfresco.smb.protocol] FTP server started
23:10:55,487 INFO  [org.alfresco.smb.protocol] SMB Server NA374_A starting
23:10:55,487 INFO  [org.alfresco.smb.protocol] GUID 7d49835e-ce97-36ab-9ff0-94ab33fa561b
23:10:55,487 INFO  [org.alfresco.smb.protocol] Using authenticator org.alfresco.filesys.server.auth.AlfrescoAuthenticator
23:10:55,487 INFO  [org.alfresco.smb.protocol] Server timezone Europe/Prague, offset from UTC = -1hrs
23:10:55,487 INFO  [org.alfresco.smb.protocol] Shares:
23:10:55,496 INFO  [org.alfresco.smb.protocol]  [Alfresco,DISK,,[workspace://SpacesStore/c64e6c2e-a4ac-11db-834c-df1e528f64d2]] [workspace://SpacesStore/c64e6c2e-a4ac-11db-834c-df1e528f64d2]
23:10:55,496 INFO  [org.alfresco.smb.protocol] Add Share [IPC$,IPC$,,Admin,Hidden] : true
23:10:57,826 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS Available LANAs: 8
23:10:58,765 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS server NA374_A (using Winsock)
NA374_A        <20>  JEDINEČNÉ    Registrovaný
NA374          <00>  JEDINEČNÉ    Registrovaný
NA374          <20>  JEDINEČNÉ    Registrovaný
DS             <00>  SKUPINA     Registrovaný
NA374_A        <00>  JEDINEČNÉ    Registrovaný

While trying to map network drive smb log displays just normal messages
23:11:04,456 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS created session handler on LANA 8
23:11:04,456 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS host announcer enabled on LANA 8
23:11:04,466 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
23:11:04,484 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:11:04,484 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS register listener for LANA 8
23:11:09,180 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:11:18,553 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:11:37,318 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:11:56,655 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[NA374:WorkStation,Unique,]
23:11:56,674 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
23:11:56,674 DEBUG [org.alfresco.smb.protocol] Server session started
23:12:05,183 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[NA374:WorkStation,Unique,]
23:12:05,183 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
23:12:05,183 DEBUG [org.alfresco.smb.protocol] Server session started
23:12:14,828 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:13:29,858 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:14:40,532 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[NA374:WorkStation,Unique,]
23:14:40,532 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
23:14:40,532 DEBUG [org.alfresco.smb.protocol] Server session started
23:14:45,636 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[NA374:WorkStation,Unique,]
23:14:45,646 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
23:14:45,646 DEBUG [org.alfresco.smb.protocol] Server session started
23:16:07,672 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A
23:21:06,909 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host NA374_A

Is it really a problem with authetication? Is it possible to turn on debbuging of the authentication?

Thanks,
Michal Strelec
2 REPLIES 2

mikee_cz
Champ in-the-making
Champ in-the-making
I have tried Alfresco tomcat bundle version 1.3 and 2.0pre as well with the same issue. I'm not able to pass authentication while mapping network drive 😞

mikee_cz
Champ in-the-making
Champ in-the-making
I have found the information in Alfresco wiki page http://wiki.alfresco.com/wiki/File_Server_Configuration and have applied the registry hack
Troubleshooting

Sometimes, when connecting to an Alfresco share, the login dialog appears several times until finally taking effect. This problem can be caused by the client connecting to the Windows file server that is running on native SMB/port 445 rather than trying to connect via NetBIOS.

Native SMB can be disabled by adding the following registry key :-

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] "SMBDeviceEnabled"=dword:00000000

A reboot is required after creating this key. Setting the value to one or deleting the registry key will restore native SMB support.

I'm not still able to log in but finally some error message is displayed:
13:00:33,062 ERROR [alfresco.smb.protocol] Closing session due to exception
java.lang.NullPointerException
        at org.alfresco.repo.security.authentication.AbstractAuthenticationCompo
nent.setCurrentAuthentication(AbstractAuthenticationComponent.java:137)
        at org.alfresco.filesys.server.auth.CifsAuthenticator.setCurrentUser(Cif
sAuthenticator.java:955)
        at org.alfresco.filesys.smb.server.SMBSrvSession.findVirtualCircuit(SMBS
rvSession.java:287)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procTreeConnectAndX
(NTProtocolHandler.java:1102)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProto
colHandler.java:219)
        at org.alfresco.filesys.smb.server.SMBSrvSession.runHandler(SMBSrvSessio
n.java:1442)
        at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:
1343)
        at java.lang.Thread.run(Thread.java:595)

Does anyone know what this exception means?

Thanks
Michal Strelec