cancel
Showing results for 
Search instead for 
Did you mean: 

Frustrating CIFS config issue... Help?

meansartin14
Champ in-the-making
Champ in-the-making
Alfresco Platform:
- Red Hat Enterprise Linux Server 5.2
- Alfresco Enterprise 3.0.0
- MySQL 5.0.45 (came with RHEL5.2)
- Java JDK 1.6 Update 7
- Tomcat 6.0.18 (came with Alfresco installation)
- OpenOffice.org 3

Issue:
None of the configured Alfresco users are able to map a network drive to the Alfresco CIFS server in Windows Explorer. This functionality worked intermittently previously, but recently stopped working altogether.

I attempt this using the following steps on the Windows XP workstations attempting to connect to the Alfresco CIFS server:
   1) My Computer -> Tools -> Map Network Drive
   2) Drive: Z: ; Folder: \\servername\alfresco
   3) Click link at end of Connect using a different user name.
   4) User name: Alfresco username ; Password: Alfresco password (NOTE: These differ from WinXP login/password)
   5) Click OK
   6) Click Finish
   7) At this stage, I am prompted to enter User name and Password again. I enter the Alfresco username and password, then click OK.
   😎 A smaller pop-up appears, saying Attempting to connect to \\servername\alfresco…
   9) A red error pop-up appears, saying
   Tbe mapped network drive could not be created because the following error has occurred:
   The account is not authorized to log in from this station.


Examining the alfresco.log file, each time I attempt the above process, the following output is generated:

ERROR [org.alfresco.smb.protocol.auth] Kerberos logon error
ERROR [org.alfresco.smb.protocol.auth] java.lang.NullPointerException
ERROR [org.alfresco.smb.protocol.auth] org.alfresco.jlan.smb.server.SMBSrvException: Invalid device type for dialect
ERROR [org.alfresco.smb.protocol.auth] Kerberos logon error
ERROR [org.alfresco.smb.protocol.auth] java.lang.NullPointerException

I currently have only 1 user aside from root configured on the RHEL5 Alfresco server. My understanding is that you do not need to have a login to the server to have a login for the Alfresco CIFS server. Is there a limit on the number of CIFS connections?

Any helpful suggestions or comments would be greatly appreciated. Thank you very much!
5 REPLIES 5

joglekar
Champ in-the-making
Champ in-the-making
Check if linux samba and nmbd services are running.

stop smb and nmbd services of linux.

If nmbd is running you cannot access the CIFS by server name but will be accessible with only IP.
stop and start Alfresco and check if you get the login for CIFS.

It worked for me.

meansartin14
Champ in-the-making
Champ in-the-making
Check if linux samba and nmbd services are running.

stop smb and nmbd services of linux.

If nmbd is running you cannot access the CIFS by server name but will be accessible with only IP.
stop and start Alfresco and check if you get the login for CIFS.

It worked for me.

I do NOT have an smb or nmbd service configured on my RHEL5 server. Neither of these services appeared when I viewed the system-config-services GUI and neither of them appear in the process table.

I have rebooted the server, as well as rebooted the Alfresco application numerous times independently. I have deleted all Alfresco users and recreated them, to no avail.

I am still unable to use the Map Network Drive… Windows to show the Alfresco CIFS server as a shared drive.

PLEASE NOTE: Alfresco's CIFS was working as recently as 2 weeks ago. I have exhaustively compared (using diff and a script) Alfresco's configuration files to a 'fresh install' backup I made; there are no differences that would effect the CIFS server.

meansartin14
Champ in-the-making
Champ in-the-making
I have started a thread that I hope to eventually turn into a AlfrescoWiki page for how to configure Active Directory authentication for both CIFS and the Web Interface in Alfresco Labs 3c.

Please see my thread:
[ERROR]Alfresco Engineers: CIFS auth does not work. Sugg?

Please come join in the discussion, or at least subscribe to the thread. I want to try to get everyone having these types of issues into the thread so that we can get a large collection of experiences and configurations.

We WILL find the answer for how to enable Active Directory authentication with CIFS in Alfresco!!

rrb_2
Champ in-the-making
Champ in-the-making
when providing the CIFS path I have found that it is important that the path used is to the share home folder level of the user logging in.

Example: Alfresco UserId "Alfred" has an alfresco home space on /User Homes/Alfred.

When mapping the USERS shared drive you need to provide:
\\yourserverA.what.ever.org\alfresco\User Homes\Alfred
then "use different user" in the drive mapping dialog …
User: Alfred
password: xxxxxx ( as set for alfred in alfresco)

It is VERY easy to get confused on this when first testing using the admin account that has privs everywhere,
but when you go into "okay  now lets give it to a few friendly users" mode you cannot make it work for them and you get that jlan invalid device type message ( if you look in the log), and end up looking foolish to those you are trying to get going on the product.

When I get this wrong, to me,  it is characterised by very long hangs to connect, (a minute or more) then eventual connection. This is followed by a dropped connection when you try to navigate ("explore") into a child folder in the windows explorer. This "half failed" result is problematic because it makes no sense at all.
The other clue on this is when you start hunting about for other user id's to authenticate with (PCNAME\Alfred
substitution for "Alfred" by windows when the connection fails leads one down this path very easily.)

( Opinion:  This is simply a user hostile message when you consider the usage context in which it occurs: the device type is not invalid, the path is. The device "instance" might be invalid,  but the type"? no way. Simply choosing to use the word "device" anywhere in this message provokes confusion. However it is not nearly as user hostile as the whole mess that is Microsoft's Drive mapping CIFS/SMB wizard versus WEBDAV wizards dichotomy around authentication. MS Active Directory only adds to the opportunities for grief and further misconceptions).

hth,
r

erictice
Champ in-the-making
Champ in-the-making
Do you have a sample file-servers-config.xml for this solution?