Doc #55248 [Opn->Fbk]: example data are inconsistent

From: Date: Wed, 27 Jul 2011 22:30:38 +0000
Subject: Doc #55248 [Opn->Fbk]: example data are inconsistent
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6944@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55248&edit=1 ID: 55248 Updated by: frozenfire@php.net Reported by: drupal at paratio dot com Summary: example data are inconsistent -Status: Open +Status: Feedback Type: Documentation Problem Package: Documentation problem Operating System: Ubuntu 10.4 LTS PHP Version: Irrelevant Block user comment: N Private report: N New Comment: I'd prefer to make the latter change, expanding the example, rather than removing that bit. But, I've not used LDAP, so I'm unsure how to represent that functionality. Could you provide some example code to do so? I'd greatly appreciate that. Otherwise, I'll just remove the line. Previous Comments: ------------------------------------------------------------------------ [2011-07-20 06:25:27] drupal at paratio dot com Description: ------------ --- From manual page: http://www.php.net/function.ldap-add%23Examples --- This are the example data: $info["cn"] = "John Jones"; $info["sn"] = "Jones"; $info["mail"] = "jonj@example.com"; $info["objectclass"] = "person"; The objectclass "person" does not contain the mail attribute. So this example doesn't work with LDAP. Just remove the mail entry or expand the example with the object class "inetOrgPerson" where "mail" is a MAY attribute. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55248&edit=1

« previous php.doc.bugs (#6944) next »