ID:               49544
 Updated by:       [email protected]
 Reported By:      lucas dot bru at terra dot com dot br
-Status:           Open
+Status:           Feedback
 Bug Type:         LDAP related
 Operating System: Ubuntu 9.10
 PHP Version:      5.3.0
 New Comment:

For the 2nd time: Please provide a complete, self-contained example. 
You're still expecting us to guess what you might be passing the func.


Previous Comments:
------------------------------------------------------------------------

[2009-10-05 17:05:53] lucas dot bru at terra dot com dot br

if ($_POST["submit"])
{
include ('includes/conn_ldap.php');

     $info["uid"]                       = $_POST['uid'];
     $info["userPassword"]              = $_POST['userPassword'];
         $info["cn"]                        = $_POST['cn'];
     $info["sn"]                        = $_POST['sn'];
     $info["mail"]                      = $_POST['mail'];
     $info["objectClass"]               = "inetOrgPerson";
     $dn                                = "uid=" . $_POST['uid'] .
",dc=localhost";

$result = ldap_add($conn, $dn, $info);
}

<form action="" method="post">


User:<input type="text" name="uid" size="20" value="<? echo
$_POST['uid']; ?>"> <br />
Pass:<input type="password" name="userPassword" size="20" value="<?
echo $_POST['userPassword']; ?>">
Pass again:<input type="password" name="confirmacao" size="20"
value="<? echo $_POST['confirmacao']; ?>">
<br /><br /><br />

E-mail:<input type="text" name="mail" size="20" value="<? echo
$_POST['mail']; ?>"><br />

First name:<input type="text" name="cn" size="20" value="<? echo
$_POST['cn']; ?>">
Last name :<input type="text" name="sn" size="20" value="<? echo
$_POST['sn']; ?>">
<br /><br /><br />

<input type="submit" value="Submit" name="submit" /> &nbsp;&nbsp;<input
type="reset" value="Clear" name="reset" />
</form>

------------------------------------------------------------------------

[2009-09-14 09:52:41] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2009-09-13 15:10:40] lucas dot bru at terra dot com dot br

Description:
------------
Hi. the function ldap_add dont accpet if the array data haves
international characters like as "josé". See the code below.

Reproduce code:
---------------
 $info["uid"]                       = $_POST['uid'];
     $info["userPassword"]              = $_POST['userPassword'];
         $info["cn"]                        = $_POST['cn'];
     $info["sn"]                        = $_POST['sn'];
     $info["mail"]                      = $_POST['mail'];
     $info["objectClass"]               = "inetOrgPerson";
     $dn                                = "uid=" . $_POST['uid'] . ",
dc=thevip, dc=com,dc=br";

$result = ldap_add($conn, $dn, $info);

Expected result:
----------------
its works, but not if any data have latin characters like as "josé"
"maça" and all others

Actual result:
--------------
Warning: ldap_add() [function.ldap-add]: Add: Invalid syntax in
/var/www.........


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49544&edit=1

Reply via email to