You are here: Re: Problem with COM on just one machine? « PHP Programming Language « IT news, forums, messages
Re: Problem with COM on just one machine?

Posted by planetthoughtful on 02/05/07 01:36

On Feb 2, 1:41 pm, "planetthoughtful" <planetthought...@gmail.com>
wrote:

> I'm confused, because as I understand it, this code is running on the
> server machine, not on the client machines (unless there's something
> different about COM?), and there should be no reason that the page
> returns the expected result on my machine and returns the error on the
> problematic one. I would have thought we should both work or both
> fail, particularly when I hard code the variable values to take any
> variability out.

Hi All,

In case anyone's interested, or in case this is of help to someone in
future, the fix for my problem was changing the string used for the
LDAP server from:

$str = "SELECT sn, givenname, mail FROM 'LDAP://
DC=core,DC=dir,DC=mycompany,DC=com' WHERE objectCategory = 'Person'
AND objectClass = 'user' AND samAccountname = '$myid'";


To:

$str = "SELECT sn, givenname, mail FROM 'LDAP://
core.dir.mycompany.com' WHERE objectCategory = 'Person' AND
objectClass = 'user' AND samAccountname = '$myid'";

(Note: in case it isn't evident, "mycompany" is not a real value)

I still have no idea why the first string worked on all client
machines but one, and why the second string works on all (tested)
machines. I was under the impression this would all happen on the
server machine. Still, there it is.

Again, hope this helps someone else.

pt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация