On Sun, Feb 06, 2005 at 09:23:30PM +, Daniel Bowett wrote:
> Is there any way I can use public/private key encryption in php in a
> similar way to mcrypt.
>
> I have got php encrypting the data using gnugp but need to automate the
> decrytping element which is proving difficult because of th
On Mon, Jan 05, 2004 at 10:45:58AM -0500, Chakravarthy Cuddapah wrote:
> You can do this in PHP. Check this: http://us4.php.net/manual/en/ref.ldap.php
> I wrote a form in PHP to add users to LDAP, change passwords etc. Check this
> https://www.cuddapahonline.net/ldap/
> I can send the forms if yo
On Tue, Dec 16, 2003 at 07:30:09PM +0100, Kim Steinhaug wrote:
> To solve this problem you need a norwegian keyboard so I
Nah, you can just cut and paste (:
> might aswell type the whole question in norwegian, sorry gyez!
>
> ---
>
> J
On Wed, Oct 30, 2002 at 09:28:00AM -0500, GC wrote:
> Hi, using php_ldapadd, I get this error in ldap.log:
>
> Oct 30 09:23:43 Lunar slapd[10714]: conn=202 op=1 RESULT tag=105 err=65
> text=object class 'posixAccount' requires attribute 'uidNumber'
>
> How do I get the next available uid number f
On Thu, Oct 24, 2002 at 04:37:56PM -0400, GC wrote:
> Hi, I wrote a simple page that tries to enter a string into a LDAP server.
> I get the following error:
>
> Warning: LDAP: add operation could not be completed. in
> /var/www/html/user/adduser_p.php on line 65
>
> Where in my log files can I g
On Thu, Sep 12, 2002 at 09:37:22AM +1000, joshua wrote:
> i'm not sure if i follow you. i have never used ldap to write
> authentication scripts as i've only used the .htaccess method.
>
> to retrieve data you need to bind using a username/password combination
> that is valid. i guess you could
On Wed, Sep 04, 2002 at 03:58:18PM -0400, Brad Harriger wrote:
> I'm trying to retrieve information from an NDS server using LDAP
> functions in PHP 4.06. I am able to establish the connection and bind
> to the server using an anonymous bind, but when I try to bind as a valid
> user, the app s
On Wed, Sep 04, 2002 at 02:26:49PM +0200, Søren Henning Dalgaard wrote:
> I can make an ldap_connect with the ldaps://hostname/ parameter but what
> next:
> How can make an ldap_bind command?
> How can I encrypt and decrypt the data?
When using ldaps:// all communications are through SSL, you do
On Fri, Aug 23, 2002 at 11:52:11AM -0500, Curtis Robinson wrote:
> So, I see that php does not have the CA. But, I have no clue as to where
> to define the location of the CA in the php configuration. So, does
> anyone know how I can configure this option?
Are you using OpenLDAP? The below is o
nippet that was given by Mr Stig Venaas at:
> http://marc.theaimsgroup.com/?l=php-general&m=100949195224325&w=2
But you're not doing what I wrote...
> // we want to transfer user roger from Civil Engineering to Credit section in
> Finance
> $r=ldap_rename($ds,
> &qu
On Fri, Aug 09, 2002 at 07:50:46PM +0200, Gandalf wrote:
> Well of course $foo[0] contains the first dimension of the $foo array and
> the same goes for $bar[0].
>
> It is still not working as it should, i am close to going nuts.
If I understood you correctly, there is no element 0 in $foo and
On Thu, Aug 01, 2002 at 09:52:12AM -0400, Chad Day wrote:
> Also tried that, no success, unless I am missing something.
>
> ...
> $info["st"]="stchanged!";
> ...
>
> ldap_modify($ds, 'uid=testing,cn=online-leagues.com', $info);
>
> Fatal error: LDAP: Unknown Attribut
On Thu, Jul 18, 2002 at 08:17:59PM -0500, Richard Lynch wrote:
> #0 is basically just LDAP's way to represent NULL, most likely.
>
> >$info["mail"]=""; // <- NULL VALUE HERE
> >// The following lines also produce the same result...
> >//$info["mail"]=NULL; // <--- NULL v
Hi
On Tue, Jul 30, 2002 at 09:00:09AM +0200, Manuel Vazquez wrote:
> Good morning,
>
> I'm running a OpenLDAP database which includes JPEG photos for some entries.
> The purpose is to view these images on a web page. Unfortunately I do not
> have much experience with PHP so any help would be ver
On Thu, Jul 11, 2002 at 04:26:38PM -0700, Lazor, Ed wrote:
> I was just checking it out. That map is awesome! What's funny is that it
> even has an option to display the picture of a house at the coordinates you
> specify.
>
> Thanks for the compliment *grin* I have no idea why I didn't. Prob
On Tue, Jun 25, 2002 at 03:33:28PM -0400, [EMAIL PROTECTED] wrote:
> I am trying to configure php4.2.1 with following commands
> on a Redhat 7.2 box
>
> ./configure --with-mysql --with-apache=../apache_1.3.20
> --enable-track-vars
> --with-imap=../imap-2001.RELEASE-CANDIDATE.1
> --with-config-
Hi Quinn
I see no one has responded yet. As I said on the OpenLDAP list, this is
not currently possible. Maybe I implement something some time in the
future, but patches would be welcome... If no one responds, I suggest
you go to http://bugs.php.net/ and submit a feature request. Or you
could of
On Tue, Feb 26, 2002 at 07:42:15PM -0800, tim tom wrote:
> why can't i see the createTimestamp and userPassword bcos i did an *authenticated
>bind* !
> the script:
This depends on the LDAP server. createTimestamp is an operational
attribute and is not returned by default. You can specify explici
On Thu, Jan 03, 2002 at 10:42:30AM -0700, Quinn Perkins wrote:
> I have installed OpenLDAP 2.x on an OS X Server 10.1.2 box. Everything
> seems to be fine. I have written a simple PHP front end to modify LDAP
> values. I can modify values in the core.schema without any problem, but
> if I try t
I'll try to help you out.
On Wed, Dec 19, 2001 at 04:10:32PM +, Greg Ulyatt wrote:
> I can set the LDAP version no problem (from 2 to 3 to have this
> function), but every time I try anything with the ldap_rename function,
> it comes back as an unsupported call (protocol error). Does anyone o
On Thu, Dec 06, 2001 at 12:08:12PM +0100, Susanne Benkert wrote:
> After recompiling my Php with the newest LDAP-Libraries and Openssl
> "ldap_connect("ldap://hostname";)" works. But I still have problems with
> "ldap_connect("ldaps://hostname")":
Could you check whether ldapsearch -H "ldaps://h
On Tue, Dec 04, 2001 at 12:19:24PM +0100, Susanne Benkert wrote:
> > This works for me. For ldap_connect("ldap://hostname";) to work, you need
> > OpenLDAP 2.x libs but that's all. Are you sure PHP is using that library?
>
> I'm quite sure, because other ldap functions work properly such as
> lda
On Tue, Dec 04, 2001 at 07:41:14AM +0800, Hafiz Malik wrote:
> hi there..
> i'm succesfully add ldap entry(jpegphoto) using PHP via below codes..
> but failed to modify it.. any ideas?
Not really. Could you check what ldap_modify() returns, did you get
any warnings from PHP? Turn on more debuggin
Hi again Susanne, I'm on this list too...
On Tue, Dec 04, 2001 at 11:13:51AM +0100, Susanne Benkert wrote:
> The LDAP server is already recompiled and running with ssl/tsl-support.
> PHP-4.0.6. is compiled "with-openssl". But when I try to use
> "ldap_connect('ldaps://hostname/')" like suggested
The LDAP sorting code I posted a couple of days ago was a bit lacking.
Here's a function that should work:
function myldap_sort($data, $attr) {
// -1 because of the count entry
echo "#", $n = count($data) - 1;
for ($i=0; $i<$n; $i++) {
$a[$i]=$data[$i][$attr][0];
}
aso
On Thu, Nov 29, 2001 at 09:38:19AM -0700, Darren Gamble wrote:
> Hey all,
>
> Has anyone else had problems with memory leaks using PHP's LDAP functions?
Yes
> I'm running php-4.0.6-7 as a module for apache-1.3.20-16; all Redhat 7.2
> RPMs.
>
> I posted a message on the PHP bug page recently, b
On Wed, Nov 28, 2001 at 05:26:22PM +0200, Christos Sintoris wrote:
>
> Server side sorting is useful when network traffic costs more than
> processing time.
Yes, there are some exceptions.
> The server side sorting control in conjunction with the virtual list
> view control returns only a subs
On Wed, Nov 28, 2001 at 03:08:52PM +0930, [EMAIL PROTECTED] wrote:
> Hi All-
>
> Can anyone tell me if PHP's LDAP functions support "server side sorting of
> search results" as defined in this RFC:
>
> http://www.ietf.org/rfc/rfc2891.txt
Not currently, maybe it will... Depends on how many want
Hi
On Tue, Nov 27, 2001 at 04:08:39PM +0200, Christos Sintoris wrote:
> Does anybody know how to call ldap_set_option in order to use server side
> sorting?
>
> using:
> $sortval="{'cn', 0,1}";
> $ctrl1 = array("oid" => "1.2.840.113556.1.4.473", "value" =>$sortval);
> ldap_set_option($ds, LDAP_O
On Sat, Nov 03, 2001 at 03:54:23PM -0500, Reuben D Budiardja wrote:
> since the key are preserved, arrC is no longer indexed from 0. Well, in most
> cases I don't care about the key if it's just indexed array. But since the
> key I preserved, I can no longer do
>
> for($i=0; $i echo $arrC[$i]
On Wed, Nov 14, 2001 at 09:17:03AM +0100, Spunk S. Spunk III wrote:
> I'm working on a script that needs array_unique() but my host is using 4.0.4
> and it's broken in that build. Does anyone have a good workaround for this?
> I can wait for my host to upgrade but if I release this code, it would
On Mon, Oct 29, 2001 at 04:54:37PM -0700, Johnson, Kirk wrote:
> Thanks for the link, Kurt. Can you also point to any authentication code
> examples, or further discussion? The user comments in the manual suggest
> there are at least a couple ways to code stuff, ldap_compare vs ldap_bind.
> Any ad
On Wed, Oct 03, 2001 at 01:32:13AM +0200, Jiri Mikulas wrote:
> sapi_apache2.c: In function `php_input_filter':
> sapi_apache2.c:248: too many arguments to function `ap_get_brigade'
I haven't looked that much at the code, you could perhaps try to
simply remove the last parameter... Not sure how w
On Thu, Sep 20, 2001 at 02:57:43PM +0200, Jens Kisters wrote:
> Hello,
>
> I was asked to generate files in UTF-8 Format, where can i find infos on
> this?
> Is it a multi-byte charset?
> How do i use other charset in PHP? can i just switch to another charset and
> then make $a="a"; where a is th
On Tue, Jul 31, 2001 at 11:59:07AM +0500, Saquib Farooq wrote:
> hi
>
> well first of all you have to remove the colon -- ";" sign from
> the end of your while loop .. that will solve the problem for the time
> out.
> then there is problem with your code, this code will never get
Hei
On Wed, Jun 20, 2001 at 03:04:06PM +0200, Stig-Ørjan Smelror wrote:
> I have some problems while printing out values of attributes-types which
> have "Equality" and/or "Substrings" values.
>
> Example:
>
> $get_values = "".$info[0]["title"][0]; # OK. (prints out the value
> correct)
>
> $g
Hi
On Tue, May 22, 2001 at 10:18:38PM -0400, Scott Russell wrote:
> So, what can be done to alter the php ldap functions (and openldap libs?) so
> that you can choose the SSL protocol to use when connecting?
Sorry for the very late answer.
The way I see it, this is something that would requir
On Mon, May 21, 2001 at 07:48:27PM -0400, Scott Russell wrote:
> Using php 4.0.4pl1 with ssl and ldap support I'm connecting to a secure ldap
> server. I want to be able to specify which level of ssl support I use,
> either ssl1, ssl2, or ssl3. By default it appears as if php is trying to
> connec
On Tue, May 08, 2001 at 08:35:37AM -0400, Stig Sæther Bakken wrote:
> [Stig Venaas <[EMAIL PROTECTED]>]
> > the LDAP back-end, see http://www/dns/bind/bind-sdb/. If you look at
> ^^^
> I guess this will take most people to somewhere el
On Mon, May 07, 2001 at 06:54:53PM +0200, Vincen Pujol wrote:
> Hi,
> Sorry for the crossposting but I don't know where to find a
> solution for this. I need to be able to update dynamically entries in a DNS
> (Bind 9). My DNS supports dynamic updates but how to do dyna
On Wed, Apr 11, 2001 at 02:07:04PM +0200, Holger Flocken wrote:
> Hi,
>
> I want to use the LDAP functions of PHP to process every entry in an LDAP
> directory. Unfortunately the directory contains more than 2 entries and
> the PHP LDAP functions
> (ldap_search/ldap_list) report that the time
On Mon, Apr 02, 2001 at 05:15:26PM +0200, Martin Skjöldebrand wrote:
> I'm afraid I dont quite under stand the output you gave (maybe ... or do
> you mean var_dump included the number of the array elements?)
First I echoed the number, then var_dump() also printed it, try
var_dump yourself.
Stig
On Mon, Apr 02, 2001 at 12:41:07AM -0700, V e r b a l wrote:
> I'm daft. I don't understand the PHP Manual.
>
> I have two arrays:
> Open[0] contains 1 2 3 4 5
> Closed[0] contains 1 2
So the arrays contain one string each? array_diff() won't work then.
Try this:
$a = array(1, 2, 3, 4, 5);
$b =
There's been some discussion on the OpenLDAP lists as well, and there
seems to be a fix around. See
http://www.openldap.org/its/index.cgi/Software%20Bugs?id=889
Stig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
On Tue, Mar 06, 2001 at 11:22:55AM +0100, Matthieu Le Corre wrote:
> i don't use SASL
> so when i use ldapsearch without -x
> I get "ldap_sasl_interactive_bind_s: Unknown authentication method"
> but it doesnt crash !
Okay, the other guy had a crash there. For me it works without -x and
I don't
On Tue, Mar 06, 2001 at 10:54:24AM +0100, Matthieu Le Corre wrote:
> Hum the ldapsearch work fine !!!
> with the command : ldapsearch -x -H "ldaps://x..xx:636"
> I have got a possitive response from server !
> and I don't use SASL ...
I got some info from the other guy. He also used RH7 w
On Tue, Mar 06, 2001 at 09:27:55AM +0100, Matthieu Le Corre wrote:
> I try to have the php ldap functions working with SSL ,
> but when the code is executed the apache child die !!!
> is there anyone with that working
Works fine for me. I know one other person with the same problem as you.
He al
On Tue, Feb 20, 2001 at 11:14:41AM -0400, Victor V . Evtushenko wrote:
> * John Hallam <[EMAIL PROTECTED]> [010215 17:58]:
> > I have got php 4.0.4p1 configured with openssl 0.9.6
> > and ldap and I'm trying to get an ldap_connect to work
> > over ldaps as described in the ldap_connect
> > documen
On Thu, Jan 25, 2001 at 03:37:26PM +0100, Ernest E Vogelsinger wrote:
> At 15:13 25.01.2001, Andy Woolley said:
> [snip]
> >I know this is a little off topic but for your information 'whois.ripe.net'
> >provide information for the .ba TLD
> >
> >I too am loo
venaas Wed Jan 17 05:43:40 2001 EDT
Modified files:
/php4/ext/ldap ldap.c
Log:
Making parallel search allow different filter for each link
Index: php4/ext/ldap/ldap.c
diff -u php4/ext/ldap/ldap.c:1.80 php4/ext/ldap/ldap.c:1.81
--- php4/ext/ldap/ldap.c:
/network.c:1.11
--- php4/main/network.c:1.10Thu Oct 19 05:18:02 2000
+++ php4/main/network.c Sat Jan 13 03:48:47 2001
@@ -15,7 +15,7 @@
| Authors: Stig Venaas <[EMAIL PROTEC
venaas Sat Jan 13 02:00:31 2001 EDT
Modified files:
/php4/ext/ldap ldap.c
Log:
Fixed memory leaks that could happen in some error situations. Also removed
some unnecessary code in ldap_set_option()
Index: php4/ext/ldap/ldap.c
diff -u php4/ext/ldap/ld
venaas Sat Jan 13 01:16:35 2001 EDT
Modified files:
/php4/ext/openssl openssl.c
Log:
Realized that emalloc() never returns NULL, simplified code
Index: php4/ext/openssl/openssl.c
diff -u php4/ext/openssl/openssl.c:1.6 php4/ext/openssl/openssl.c:1.7
--- ph
identifiers (Stig Venaas)
Index: php4/ext/ldap/ldap.c
diff -u php4/ext/ldap/ldap.c:1.78 php4/ext/ldap/ldap.c:1.79
--- php4/ext/ldap/ldap.c:1.78 Mon Jan 8 10:31:59 2001
+++ php4/ext/ldap/ldap.cFri Jan 12 14:08:26 2001
@@ -23,7 +23,7 @@
*/
-/* $Id: ldap.c,v 1.78 2001/01/08 18:31
, $http_response_header will
@ contain all headers with empty string as delimiter (Stig Venaas)
Index: php4/ext/standard/http_fopen_wrapper.c
diff -u php4/ext/standard/http_fopen_wrapper.c:1.3
php4/ext/standard/http_fopen_wrapper.c:1.4
--- php4/ext/standard/http_fopen_wrapper.c:1.3 Fri Oct 27
55 matches
Mail list logo