|
Posted by Andy Hassall on 07/14/05 02:11
On Wed, 13 Jul 2005 10:19:30 +0200, "Nik Futter" <spam@unawave.de> wrote:
>I now have found someone, who can solve my problem described below - but
>he wants 400 $ for this solution. This is too much expensive for my
>private using. Is the solution for this problem such a big thing that it
>is worth the price of 400 $?
>
>I have problems with anonymous connecting via PHP to a LDAP server (ILS
>server, Netmeeting). I don't know if I need a password to connect to the
>ILS server. But when Netmeeting connects to an ILS server it also
>doesn't need a password. Or does there exist a "guest" account ? I have
>tried it with the following script - but can not connect:
>
><HTML><HEAD></HEAD><BODY>
>Actual IP-Address: <?php echo getenv('REMOTE_ADDR'); ?><BR>
><?php
>$ds=ldap_connect("ils.netmeeting-center.de","389");
>$r=ldap_bind($ds);
>
>// Data arrange
> $info["cn"]="MyName";
> $info["sn"]="Name";
> $info["mail"]="-@-.com";
> $info["objectclass"]="rtperson";
> $info["comment"]="Test with PHP";
> $info["location"]="Bavaria";
> $info["sappid"]="ms-netmeeting";
> $info["sipaddress"]=sprintf('%u',ip2long(join(".",array_reverse(explode("."
>,getenv('REMOTE_ADDR'))))));
> $info["ilsa32833566"]="1"; // Audio=Yes
> $info["ilsa32964638"]="1"; // Video=Yes
>
>// send Data
> $r=ldap_add($ds, "cn=MyName, o=CompanyXY, c=com", $info);
>
> ldap_close($ds);
>?>
></BODY></HTML>
>
>But I only get this warning:
>
>> Warning: ldap_add(): Add: Naming violation in ... test.php on line 20
>
>(This is line with ldap_add).
>Where is the problem with connecting ?
Doesn't this imply you've successfully connected, and there's a problem with
the data you're trying to add?
Perhaps the invalid email address? Something about the dn it doesn't like?
Have you tried using something like Ethereal to see what Netmeeting itself
does when it adds an entry to an ILS?
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
[Back to original message]
|