one-time password support/account generation by script?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

one-time password support/account generation by script?

Stefan Vollmar
Hello,

I am new to this list. We are currently evaluating the current OpenSource version of ownCloud at our institute and would like to congratulate all developers on a great piece of software - thank you! Installation on a Ubuntu VM worked beautifully and the first impression is excellent.

I am sorry if this has been asked before and I did not find anything on the following two points in the manual:

(1) adding new users with the web interface is simple enough. However, transmitting the initial password is always a bit of a pain (nothing ownCloud specific here). We would prefer to send new users an (automatically generated) E-mail with an expiring "one-time-URL" (containing a more complex password) which logs them into our ownCloud installation and then forces them to immediately choose a new password. Is this possible (automatically generating E-mails we can manage ourselves)? At least forcing new users to choose a new password on their initial login? Thanks!

(2) We would like to use ownCloud also to upload data for an internal ticket system. Ideally, we would like to provide a one-time-URL to a limited storage space which should have been remotely created in the context of opening a new ticket id. Can we script the creation of ownCloud-Accounts and/or "chroot cage-type" directories?

Many thanks in advance.
Best regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: [hidden email]   http://www.nf.mpg.de









_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Chris-3
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Stefan Vollmar
Dear Chris,

On 19.08.2013, at 14:27, Chris wrote:

> some discussions about the initial password is ongoing at the bugtracker:
>
> https://github.com/owncloud/core/issues/4311
> https://github.com/owncloud/core/issues/4451


thanks for the pointers and I applaud the new mechanism that measures password strength. This is helpful but not exactly what I was looking for. Is it possible to create accounts (with passwords) without the admin web interface?

Best regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: [hidden email]   http://www.nf.mpg.de









_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Chris-3
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Stefan Vollmar
Dear Chris,

On 19.08.2013, at 15:55, Chris wrote:

> https://github.com/owncloud/core/issues/4311#issuecomment-22080871
>
> is exactly what your looking for? Maybe someone will pick off this idea
> and will implement it in one of the next OC versions.

You are right - but it has not been implemented yet.

> There where some solutions for this posted at the forums, maybe they are
> helpful
> for the solution which you're looking for:
>
> https://forum.owncloud.org/viewtopic.php?f=8&t=14410
> https://forum.owncloud.org/viewtopic.php?f=3&t=2477
> https://forum.owncloud.org/viewtopic.php?f=8&t=2699 (Probably won't work in
> OC5)


We are currently migrating to a MySQL-based installation and we are familiar with manipulating databases from external scripts (Python, PHP), so implementing https://forum.owncloud.org/viewtopic.php?f=8&t=2699 should not be a problem. Unfortunately, this solution will not work for the current release of ownCloud (as someone in the thread has noted) and the last version of the script does no longer manipulate the MySQL data but rather mimics entering data into the admin web interface using curl - which (in principle) is more pragmatic than elegant, I think - but is there no "official" solution for creating accounts without the user interface?

Best regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: [hidden email]   http://www.nf.mpg.de









_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Thomas Gries
In reply to this post by Chris-3
MediaWiki has all the code (create account by mail, password creation,
tokens) you need in oc. It is safe, secure, code-reviewed.
No need to reinvent the wheel.

Am 19.08.2013 15:55, schrieb Chris:

> Hi Stefan,
>
>> This is helpful but not exactly what I was looking for.
> i'm not sure but i think the comment in issue 4311:
>
> https://github.com/owncloud/core/issues/4311#issuecomment-22080871
>
> is exactly what your looking for? Maybe someone will pick off this idea
> and will implement it in one of the next OC versions.
>
>> Is it possible to create accounts (with passwords) without the admin web
>> interface?
> There where some solutions for this posted at the forums, maybe they are
> helpful
> for the solution which you're looking for:
>
> https://forum.owncloud.org/viewtopic.php?f=8&t=14410
> https://forum.owncloud.org/viewtopic.php?f=3&t=2477
> https://forum.owncloud.org/viewtopic.php?f=8&t=2699 (Probably won't work in
> OC5)
>
>
>
> --
> View this message in context: http://owncloud.10557.n7.nabble.com/one-time-password-support-account-generation-by-script-tp10494p10499.html
> Sent from the ownCloud mailing list archive at Nabble.com.
> _______________________________________________
> Owncloud mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/owncloud
>
>
> ---
> avast! Antivirus: Eingehende Nachricht sauber.
> Virus-Datenbank (VPS): 130819-0, 19.08.2013
> Getestet am: 19.08.2013 20:54:07
> avast! - copyright (c) 1988-2013 AVAST Software.
> http://www.avast.com
>
>
>
>

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Stefan Vollmar
Dear Thomas,

On 20.08.2013, at 10:10, Thomas Gries wrote:

> MediaWiki has all the code (create account by mail, password creation,
> tokens) you need in oc. It is safe, secure, code-reviewed.
> No need to reinvent the wheel.

thanks - sorry if this should be obvious: I will certainly look it up but could you give me an initial pointer to the documentation? Does "MediaWiki" refer to api.owncloud.org? Many thanks in advance!

Best regards,
 Stefan


> Am 19.08.2013 15:55, schrieb Chris:
>> Hi Stefan,
>>
>>> This is helpful but not exactly what I was looking for.
>> i'm not sure but i think the comment in issue 4311:
>>
>> https://github.com/owncloud/core/issues/4311#issuecomment-22080871
>>
>> is exactly what your looking for? Maybe someone will pick off this idea
>> and will implement it in one of the next OC versions.
>>
>>> Is it possible to create accounts (with passwords) without the admin web
>>> interface?
>> There where some solutions for this posted at the forums, maybe they are
>> helpful
>> for the solution which you're looking for:
>>
>> https://forum.owncloud.org/viewtopic.php?f=8&t=14410
>> https://forum.owncloud.org/viewtopic.php?f=3&t=2477
>> https://forum.owncloud.org/viewtopic.php?f=8&t=2699 (Probably won't work in
>> OC5)
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: [hidden email]   http://www.nf.mpg.de









_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Pellaeon Lin
Hi,

I have a work-in-progress registration system, https://github.com/NCTU-NBA/core/compare/registration
Basic things like registering should work, but I haven't done any testing yet.

Best regards,
Pellaeon Lin


2013/8/20 Stefan Vollmar <[hidden email]>
Dear Thomas,

On 20.08.2013, at 10:10, Thomas Gries wrote:

> MediaWiki has all the code (create account by mail, password creation,
> tokens) you need in oc. It is safe, secure, code-reviewed.
> No need to reinvent the wheel.

thanks - sorry if this should be obvious: I will certainly look it up but could you give me an initial pointer to the documentation? Does "MediaWiki" refer to api.owncloud.org? Many thanks in advance!

Best regards,
 Stefan


> Am 19.08.2013 15:55, schrieb Chris:
>> Hi Stefan,
>>
>>> This is helpful but not exactly what I was looking for.
>> i'm not sure but i think the comment in issue 4311:
>>
>> https://github.com/owncloud/core/issues/4311#issuecomment-22080871
>>
>> is exactly what your looking for? Maybe someone will pick off this idea
>> and will implement it in one of the next OC versions.
>>
>>> Is it possible to create accounts (with passwords) without the admin web
>>> interface?
>> There where some solutions for this posted at the forums, maybe they are
>> helpful
>> for the solution which you're looking for:
>>
>> https://forum.owncloud.org/viewtopic.php?f=8&t=14410
>> https://forum.owncloud.org/viewtopic.php?f=3&t=2477
>> https://forum.owncloud.org/viewtopic.php?f=8&t=2699 (Probably won't work in
>> OC5)

--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: <a href="tel:%2B49-221-4726-213" value="+492214726213">+49-221-4726-213  FAX <a href="tel:%2B49-221-4726-298" value="+492214726298">+49-221-4726-298
Tel.: <a href="tel:%2B49-221-478-5713" value="+492214785713">+49-221-478-5713  Mobile: 0160-93874279
E-Mail: [hidden email]   http://www.nf.mpg.de









_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud



_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

Stefan Vollmar
In reply to this post by Chris-3
Hello,

our OwnCloud installation now uses the current release and the MySQL option. We have looked at the table structures and believe that we can deduce what inserts are necessary to create accounts for new users (in addition to creating a suitable data directory). While it is reassuring to know that even without any documentation we could add useful features for our purposes (although I believe that other sites would profit from better handling of initial passwords, too), we would prefer a more "official" way.

All we need seems to be available in
/var/www/owncloud/lib/user.php

What is a minimal wrapper we would need to execute functions like createUser( $uid, $password ) from here?

Many thanks in advance!
Best regards,
 Stefan



On 19.08.2013, at 15:55, Chris wrote:

> Hi Stefan,
>
>> This is helpful but not exactly what I was looking for.
>
> i'm not sure but i think the comment in issue 4311:
>
> https://github.com/owncloud/core/issues/4311#issuecomment-22080871
>
> is exactly what your looking for? Maybe someone will pick off this idea
> and will implement it in one of the next OC versions.
>
>> Is it possible to create accounts (with passwords) without the admin web
>> interface?
>
> There where some solutions for this posted at the forums, maybe they are
> helpful
> for the solution which you're looking for:
>
> https://forum.owncloud.org/viewtopic.php?f=8&t=14410
> https://forum.owncloud.org/viewtopic.php?f=3&t=2477
> https://forum.owncloud.org/viewtopic.php?f=8&t=2699 (Probably won't work in
> OC5)
>
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: [hidden email]   http://www.nf.mpg.de









_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: one-time password support/account generation by script?

hippykilla
In reply to this post by Thomas Gries
I agree on mediwiki as being a solution for this. I have been working on a
large scale project I cannot mention but can say, we have used MediWikki for
a solution to a similar problem. There is a lot there.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf
Of Thomas Gries
Sent: Tuesday, August 20, 2013 1:11 AM
To: [hidden email]
Cc: Chris
Subject: Re: [Owncloud] one-time password support/account generation by
script?

MediaWiki has all the code (create account by mail, password creation,
tokens) you need in oc. It is safe, secure, code-reviewed.
No need to reinvent the wheel.

Am 19.08.2013 15:55, schrieb Chris:

> Hi Stefan,
>
>> This is helpful but not exactly what I was looking for.
> i'm not sure but i think the comment in issue 4311:
>
> https://github.com/owncloud/core/issues/4311#issuecomment-22080871
>
> is exactly what your looking for? Maybe someone will pick off this
> idea and will implement it in one of the next OC versions.
>
>> Is it possible to create accounts (with passwords) without the admin
>> web interface?
> There where some solutions for this posted at the forums, maybe they
> are helpful for the solution which you're looking for:
>
> https://forum.owncloud.org/viewtopic.php?f=8&t=14410
> https://forum.owncloud.org/viewtopic.php?f=3&t=2477
> https://forum.owncloud.org/viewtopic.php?f=8&t=2699 (Probably won't
> work in
> OC5)
>
>
>
> --
> View this message in context:
> http://owncloud.10557.n7.nabble.com/one-time-password-support-account-
> generation-by-script-tp10494p10499.html
> Sent from the ownCloud mailing list archive at Nabble.com.
> _______________________________________________
> Owncloud mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/owncloud
>
>
> ---
> avast! Antivirus: Eingehende Nachricht sauber.
> Virus-Datenbank (VPS): 130819-0, 19.08.2013 Getestet am: 19.08.2013
> 20:54:07 avast! - copyright (c) 1988-2013 AVAST Software.
> http://www.avast.com
>
>
>
>

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud

_______________________________________________
Owncloud mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/owncloud