Return-Path: X-Original-To: apmail-incubator-connectors-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0938C784D for ; Thu, 17 Nov 2011 08:01:52 +0000 (UTC) Received: (qmail 77234 invoked by uid 500); 17 Nov 2011 08:01:51 -0000 Delivered-To: apmail-incubator-connectors-user-archive@incubator.apache.org Received: (qmail 77131 invoked by uid 500); 17 Nov 2011 08:01:50 -0000 Mailing-List: contact connectors-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-user@incubator.apache.org Delivered-To: mailing list connectors-user@incubator.apache.org Received: (qmail 77114 invoked by uid 99); 17 Nov 2011 08:01:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 08:01:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daddywri@gmail.com designates 209.85.161.47 as permitted sender) Received: from [209.85.161.47] (HELO mail-fx0-f47.google.com) (209.85.161.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 08:01:42 +0000 Received: by faat2 with SMTP id t2so2626534faa.6 for ; Thu, 17 Nov 2011 00:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ZwXy843JZWDmIjH4lTV2XxVVm32VpbghVpLuNmTM0Dc=; b=qLYTLMW1kjriiHhr5Flhxd3a1sdO6sFj+Z1vVXuWoYUGCrADXqJAzfjvVv3fUhO0Ej jNQ9rr/JskGPAFXhEm7BMfFxJhpVpNmpu4qg0vaLXexJV8Pz7LF7rVowR5TaVZHyvkxI dGiVG7xGo42+4bsB4gLtqi6Qy5qcc7ZjgveEU= MIME-Version: 1.0 Received: by 10.152.144.2 with SMTP id si2mr22514316lab.8.1321516882505; Thu, 17 Nov 2011 00:01:22 -0800 (PST) Received: by 10.152.11.103 with HTTP; Thu, 17 Nov 2011 00:01:22 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Nov 2011 03:01:22 -0500 Message-ID: Subject: Re: Problem crawling windows share From: Karl Wright To: connectors-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org See http://jcifs.samba.org/src/docs/api/overview-summary.html#scp. The properties jcifs.smb.lmCompatibility and jcifs.smb.client.useExtendedSecurity are the ones you may want to change. These two properties go together so certain combinations make sense and others don't, so there's really only combinations you need but I'll need to look at what they are and get back to you later today. As far as setting the switches are concerned, if you are using the Quick Start you do this trivially by: -Dxxx -Dyyy -jar start.jar If you are using the multi-process configuration, that is what the "defines" directory is for; you only need to create files in that directory with the names "jcifs.smb.lmCompatibility" and "jcifs.smb.client.useExtendedSecurity" containing the values you want to set. Karl On Thu, Nov 17, 2011 at 1:11 AM, Swapna Vuppala wrote: > Hi Karl, > > Am able to access the folders on the problem server through windows > explorer, (\\server3\Folder1). I tried couple of things with the credenti= als > form, changing username, domain etc.. but I keep getting the same error > "Couldn't connect to server: Logon failure: unknown user name or bad > password" > > Can you tell me more about the -D switch you were talking of ? > > Thanks and Regards, > Swapna. > > On Tue, Nov 15, 2011 at 12:40 PM, Karl Wright wrote: >> >> Glad you chased it down this far. >> >> First thing to try is whether you can get into the problem server >> using Windows Explorer. =A0Obviously ManifoldCF is not going to be able >> to do it if Windows can't. =A0If you *can* get in, then just playing >> with the form of the credentials in the MCF connection might do the >> trick. =A0Some Windows or net appliance servers are picky about this. >> Try various things like leaving the domain blank and specifying the >> user as "abc@domain.com", for instance. There's also a different NTLM >> mode you can operation jcifs in that some servers may be configured to >> require; this would need you to set a -D switch on the command line to >> enable. >> >> Karl >> >> On Tue, Nov 15, 2011 at 12:10 AM, Swapna Vuppala >> wrote: >> > Hi Karl, >> > >> > Thanks for the input. It looks like my problem is related to the secon= d >> > one >> > that you specified. One of the directories in the path am trying to >> > index is >> > actually redirecting to a different server. And when I specify this ne= w >> > server in defining the repository connection, with my credentials, the >> > connection fails with the message:=A0 "Couldn't connect to server: Log= on >> > failure: unknown user name or bad password" >> > >> > I'll look into why am not able to connect to this server. >> > >> > Thanks and Regards, >> > Swapna. >> > >> > On Mon, Nov 14, 2011 at 4:56 PM, Karl Wright wrot= e: >> >> >> >> There's two kinds of problem you might be having. =A0The first is >> >> intermittent, and the second is not intermittent but would have >> >> something to do with specific directories. >> >> >> >> Intermittent problems might include a domain controller that is not >> >> always accessible. =A0In such cases, the crawl will proceed but will >> >> tend to fail unpredictably. =A0On the other hand, if you have a >> >> directory that is handled by a DFS redirection, it is possible that >> >> the redirection is indicating a new server (lets call it server3) >> >> which may not like the precise form of your login credentials. =A0Can >> >> you determine which scenario you are seeing? >> >> >> >> Karl >> >> >> >> On Mon, Nov 14, 2011 at 3:11 AM, Swapna Vuppala >> >> wrote: >> >> > Hi, >> >> > >> >> > I have been using windows share repository connection to crawl and >> >> > get >> >> > data >> >> > from a particular server (server 1). Its working perfectly fine. >> >> > However, am >> >> > having trouble when I try with data from another server (server 2). >> >> > >> >> > When I define a repository connection of type windows share and >> >> > specify >> >> > the >> >> > server name (server 2) with my credentials, the connection status >> >> > shows >> >> > "Connection working". But when I run a job to use this repository >> >> > connection >> >> > and index data from a location on this server 2, I keep getting the >> >> > exception below: >> >> > >> >> > JCIFS: Possibly transient exception detected on attempt 3 while >> >> > checking >> >> > if >> >> > file exists: Logon failure: unknown user name or bad password. >> >> > jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad >> >> > password. >> >> > =A0=A0=A0 at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:5= 44) >> >> > =A0=A0=A0 at jcifs.smb.SmbTransport.send(SmbTransport.java:661) >> >> > =A0=A0=A0 at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:390) >> >> > =A0=A0=A0 at jcifs.smb.SmbSession.send(SmbSession.java:218) >> >> > =A0=A0=A0 at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176) >> >> > =A0=A0=A0 at jcifs.smb.SmbFile.doConnect(SmbFile.java:911) >> >> > =A0=A0=A0 at jcifs.smb.SmbFile.connect(SmbFile.java:954) >> >> > =A0=A0=A0 at jcifs.smb.SmbFile.connect0(SmbFile.java:880) >> >> > =A0=A0=A0 at jcifs.smb.SmbFile.queryPath(SmbFile.java:1335) >> >> > =A0=A0=A0 at jcifs.smb.SmbFile.exists(SmbFile.java:1417) >> >> > =A0=A0=A0 at >> >> > >> >> > >> >> > org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConn= ector.fileExists(SharedDriveConnector.java:2064) >> >> > =A0=A0=A0 at >> >> > >> >> > >> >> > org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConn= ector.getDocumentVersions(SharedDriveConnector.java:521) >> >> > =A0=A0=A0 at >> >> > >> >> > >> >> > org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.= java:318) >> >> > >> >> > Am able to access this location from windows explorer. What else >> >> > should >> >> > I be >> >> > checking or what could be the reasons/factors causing this to fail = ? >> >> > >> >> > Thanks and Regards, >> >> > Swapna. >> >> > >> > >> > > >