Re: [phpldapadmin] Fate of EntryWriter1 class
Cristian Rigamonti <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <20091109094754.GD3640@pegasus> |
On Sun, Nov 08, 2009 at 09:31:27AM +0100, Cristian Rigamonti wrote:
>
> So, I'll dig into PageRender and let you know :)
Ok, I'm (slowly) managing to port my patches from 1.1.0.6 to 1.2.0.4, but I'm
still stuck on some steps. The main one at the moment is:
In 1.1.0.6 I use to redirect logged in users directly to the entry editing page
for their own LDAP entry. I do this with the following patch to
/htdocs/login.php
Index: www/htdocs/login.php
===================================================================
--- www.orig/htdocs/login.php 2009-11-07 17:44:57.000000000 +0100
+++ www/htdocs/login.php 2009-11-07 17:46:25.000000000 +0100
@@ -163,5 +163,7 @@
'title'=>_('Authenticate to server'),
'body'=>_('Successfully logged into server.').($anon_bind ? sprintf(' (%s)',_('Anonymous Bind')) : ''),
'type'=>'info'),
- sprintf('index.php?server_id=%s',$ldapserver->server_id));
+ // Upon successful login, we go directly to the user entry edit page
+ //sprintf('index.php?server_id=%s',$ldapserver->server_id));
+ sprintf('cmd.php?cmd=template_engine&server_id=%s&dn='.$login['dn'],$ldapserver->server_id));
?>
Now in /htdocs/login.php in PLA 1.2.0.4, $login['dn'] is not available anymore;
could anyone suggest a way to replace it?
I tried messing around with $server->getLogin(null), to retrieve the dn of the
logged in user, but I'm not familiar with OOP, so I only get PHP errors :)
Cri
--
GPG/PGP Key-Id 0x943A5F0E - http://www.linux.it/~cri/cri.asc
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkr35UkACgkQrSAagZQ6Xw6uXQCgmhqV/UuNIJjFj+sJEsBiv033 R2UAnjglgjB94Q5JTX5uSuXAbxht0r6O =GPn1 -----END PGP SIGNATURE-----