External User Creation

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

External User Creation

Postby razy69 » Sun Jun 10, 2012 10:34 pm

Hi,
I want to create users by a form php/html, and connect them by this way.
So in a website you can create a account, and after you case use it in owncloud.

What is the password encrypt method, i try Sha1() and md5().
Can someone give me the php code for?

Thanks i hope someone can help me.

PS: sorry for my bad english ^^
razy69
Newbie
 
Posts: 4
Joined: Sun Jun 10, 2012 10:30 pm

Re: External User Creation

Postby kalassico » Mon Jun 11, 2012 10:02 am

Hi,

I tried a similar solution. I have a Java program to manage users.
Therefore I had the same problem. OwnCloud uses a third party framework called phpass to encrypt/hash the password.
My attempt to implement this code in Java failed so far.
I think previous version used SHA-1 hashing so there are still code that accept this.

You can hash your password with SHA-1 and when you log in the first time the password will be automatically converted in phpass format with a salted blowfish encryption.

I hope this is not wrong. There are probably better solutions but it works for me.

Nevertheless I will appreciate If someone can give a hint to implement the phpass code directly.
kalassico
Beginner
 
Posts: 12
Joined: Fri Apr 13, 2012 3:01 pm

Re: External User Creation

Postby sjau » Sat Jun 16, 2012 6:20 pm

Check this here:

viewtopic.php?f=8&t=2699

Instead of reading out people from that csv file, use a form and submit it to the script... a few tweaks are required however.
sjau
Starter
 
Posts: 79
Joined: Sun May 20, 2012 9:34 pm

Re: External User Creation

Postby razy69 » Thu Jun 21, 2012 4:04 pm

Oh my god ! You save me!! you are genius i will try it as fast as i can. Really nice code!
razy69
Newbie
 
Posts: 4
Joined: Sun Jun 10, 2012 10:30 pm

Re: External User Creation

Postby sjau » Thu Jun 21, 2012 4:11 pm

good that it works :)
sjau
Starter
 
Posts: 79
Joined: Sun May 20, 2012 9:34 pm

Re: External User Creation

Postby razy69 » Fri Jun 22, 2012 8:38 am

I never make a php file that write in a csv file, have you a function for that? thx
razy69
Newbie
 
Posts: 4
Joined: Sun Jun 10, 2012 10:30 pm

Re: External User Creation

Postby sjau » Fri Jun 22, 2012 8:42 am

sjau
Starter
 
Posts: 79
Joined: Sun May 20, 2012 9:34 pm

Re: External User Creation

Postby razy69 » Fri Jun 22, 2012 9:11 am

Woooow faster than light you are :)
GReattttt !!! <33
razy69
Newbie
 
Posts: 4
Joined: Sun Jun 10, 2012 10:30 pm

Re: External User Creation

Postby ezzaez » Tue Jul 03, 2012 10:49 am

can you give me a tutorial please
step by step please :D
i don't understand :(
ezzaez
Newbie
 
Posts: 1
Joined: Tue Jul 03, 2012 10:46 am

Re: External User Creation

Postby sjau » Thu Jul 05, 2012 7:00 am

what don't you understand?
sjau
Starter
 
Posts: 79
Joined: Sun May 20, 2012 9:34 pm


Return to OwnCloud Community Edition 4.x and older

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 27 guests