Thanks for the file.
It does not work, the error i get is
[Fri Nov 09 09:32:00 2012] [error] [client 192.168.50.105] PHP Fatal error: Call to undefined function create_salt() in /usr/local/www/owncloud/apps/user_postfixadmin/user_postfixadmin.php on line 147
I saw in the postfixadmin function.inc.php file the following
function create_salt () {
srand ((double) microtime ()*1000000);
$salt = substr (md5 (rand (0,9999999)), 0, 8);
return $salt;
}
So i thougt i add it at the end of the file, but i keep getting the error??
thanks again.
gr
Johan
Van: Rudi Floren [mailto:rud...@go...]
Verzonden: vrijdag 9 november 2012 0:10
Aan: Johan Hendriks
CC: Rudi Floren; pos...@li...
Onderwerp: Re: [Postfixadmin-devel] Owncloud Authenticate against postfixadmin database
Try with these file.
i wrote it in less than 5 minutes. so its untested.
please test before using in prod. env.
Am 08.11.2012 16:17, schrieb Johan Hendriks:
That fast, i am trying to get it done for at least a week or two :(
Sometimes i think it is time to start programming.
But time restraints always catch up.
I send you a tar file which has the whole plugin.
I did not do the GetUser part because i got stuck on the md5crypt thing.
But i altered the user_phpbb3 plugin and that showed me all my users.
The user_postfixadmin.tar file it is a copy of the redmine plugin.
once enabled, you can set the db info in the admin page in owncloud
the file is user_posfixadmin.php
And many many thanks.
regards
Johan
________________________________
Van: Rudi Floren [rud...@go...<mailto:rud...@go...>]
Verzonden: donderdag 8 november 2012 15:35
Aan: Johan Hendriks
CC: pos...@li...<mailto:pos...@li...>
Onderwerp: RE: [Postfixadmin-devel] Owncloud Authenticate against postfixadmin database
Send me the file from own cloud eventually I can implement it this evening
Am 08.11.2012 14:05 schrieb "Johan Hendriks" <Jo...@do...<mailto:Jo...@do...>>:
If i add the function i get the error unexpected T_PRIVATE on line 72
Which is outside of the added code.
Well that goes waaaay beond my knowledge.
And i am not a coder so i stand ground :D
Too bad, because it could be a nice extension to the whole postfixadmin server.
I tink i use the imap function instead.
gr
Johan
Van: Rudi Floren [mailto:rud...@go...<mailto:rud...@go...>]
Verzonden: donderdag 8 november 2012 11:13
Aan: Johan Hendriks
Onderwerp: RE: [Postfixadmin-devel] Owncloud Authenticate against postfixadmin database
That's the one I meant.
Look for md5crypt inside pacrypt and try to understand what is done inside.
Am 08.11.2012 09<tel:08.11.2012%2009>:16 schrieb "Johan Hendriks" <Jo...@do...<mailto:Jo...@do...>>:
Thanks for your reply.
I do not have a file pacrypt!
I do have the function pacrypt!
But i am not a real coder.
I will try to make it work, I think more people would benevit from it.
thanks
regards
Johan
________________________________________
Van: Rudi Floren [rud...@go...<mailto:rud...@go...>]
Verzonden: woensdag 7 november 2012 16:21
Aan: Johan Hendriks
CC: pos...@li...<mailto:pos...@li...>; Christian Boltz
Onderwerp: Re: [Postfixadmin-devel] Owncloud Authenticate against postfixadmin database
Look into the pfacrypt file.
There you find the way postfixadmin hashes the password.
You could copy pase that into the copied redmine plugin.
Am Mittwoch, 7. November 2012 12:56:59 schrieb Johan Hendriks:
>> -----Oorspronkelijk bericht-----
>> Van: Christian Boltz [mailto:pos...@cb...<mailto:pos...@cb...>]
>> Verzonden: dinsdag 6 november 2012 19:37
>> Aan: pos...@li...<mailto:pos...@li...>
>> Onderwerp: Re: [Postfixadmin-devel] Owncloud Authenticate against postfixadmin database
>
>> Hello,
>
>> Am Dienstag, 6. November 2012 schrieb Robert Schetterer:
>>> Am 06.11.2012 09<tel:06.11.2012%2009>:59, schrieb Johan Hendriks:
>>>> I try to get Owncloud running in combination with posfixadmin.
>
>>> http://forum.owncloud.org/viewtopic.php?f=3&t=2250
>>>
>>> --snip
>>> change the password check functions in owncloud/lib/user/database.php
>>> and let them check versus your joomla user database entries instead of
>>> the owncloud database.
>>> --snip
>
>> Instead of changing core code of OwnCloud, better write a small plugin.
>> The plugin to authentificate against a redmine database might be a good starting point ;-)
>
>> http://apps.owncloud.com/content/show.php/user_redmine?content=150740
>
>
>> Another way is to use IMAP logins to verify the user password. There's already an ownClowd plugin to do that, but I >can't guarantee for anything ;-)
>
>> http://apps.owncloud.com/content/show.php?content=148653&forumpage=0
>
>
>> Note that I didn't test any of the plugins mentioned above. I don't even use OwnCloud ;-)
>
>
>> Regards,
>
>> Christian Boltz
>
>
> Thanks all for the answers.
> And sorry if this is the wrong mailinglist.
>
> I have it working with the user_imap and i can read the users from the DB.
> But i want a cleaner way so even if the imap server is down, users can still use owncloud and authenticate against the database.
>
> Also using user_redmine AND plain MD5 i got it working
>
> The thing is that it is not working if i use md5crypt.
> That way it seems impossible to get the password!
>
>
> This is the code from user_remine
> $sql = 'SELECT login FROM users WHERE login = :uid';
> $sql .= ' AND hashed_password = SHA1(CONCAT(salt, SHA1(:password)))';
>
> If i use $CONF['encrypt'] = 'md5'; in config.inc.php in postfixadmin,
> And change the password for a user through postfixadmin
> And use the following:
> $sql = 'SELECT username FROM mailbox WHERE username = :uid';
> $sql .= ' AND password = MD5(:password)';
> Then i can login.
>
> But if i use the following in config.inc.php
> $CONF['encrypt'] = 'md5crypt'; which i have in production.
> Then i can not login.
> So i need a way to get the password, maybe need some salt? I really do not know.
> But this goes byond my knowledge.
> I am so close to get this to work, but the md5crypt keeps me from using it.
>
> Thanks again all
> gr
> Johan
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Postfixadmin-devel mailing list
> Pos...@li...<mailto:Pos...@li...>
> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel
|