Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quotas in LDAP setup #1761

Closed
a-schild opened this issue Feb 18, 2013 · 9 comments
Closed

Quotas in LDAP setup #1761

a-schild opened this issue Feb 18, 2013 · 9 comments

Comments

@a-schild
Copy link

We have our users in LDAP and this integration works fine.

One thing which cause(d) us troubles is the handling of quotas.
In the LDAP setup we only have defined the default quota and no individual quotas.

When we now go in the admin interface of ownCloud, we can change the quotas of the users to somethings else.
But as sonn as a user does a login, the quota value for that user is replaced by the default quota as defined in the LDAP setup.

It should not be possible to change/override the quota on user-level, when the quota value is fetched from the LDAP setup

@a-schild
Copy link
Author

BTW: Behaves the same in 4.5.6 and 5.0-alpha 1

@DeepDiver1975
Copy link
Member

@blizzz can you please have a look? THX

@blizzz
Copy link
Contributor

blizzz commented Feb 19, 2013

The idea of LDAP is the central managament of users. Thus, it seems awkward to do parts in ownCloud and parts in LDAP. My suggestion is to define Quota in LDAP solely. You cannot do both in a reliable and determinable way.

Of course it can be made to act like this. But, it will require additions within ownCloud core and there are some sharp edges that need to be taken care of resulting in some overhead. It is complicated (compared to the gain) and I honestly do not see much reason there.

Convince me ;)

P.S.:
As it's a feature request it could be applied to OC 6 only.

@ghost ghost assigned blizzz Feb 19, 2013
@a-schild
Copy link
Author

Probably you missed my point.

The idea is to NOT allow users to specify quotas in the WebUI when the quota is defined/retrieved from LDAP.
Something like:

If UserSource = LDAP
// Don't show Quota dropdown (or in disabled mode)
else
// Display editable Quota Dropdown for the users
endif

@blizzz
Copy link
Contributor

blizzz commented Feb 19, 2013

Overread this, excuse me.

Agree, it is not nice. Shouldn't be a problem however, because on every userExists the Quota will be updated.

Actually, it is not wrong to offer this setting, when the Quota-from-LDAP feature is not used.

It is one of more drawbacks of the Users UI.

@blizzz
Copy link
Contributor

blizzz commented Mar 5, 2013

The Users page will be redesigned, see #1927

The correct behaviour should be implemented there. Imho this is a rather small issue then a big problem, and thus OK to be resolved with ownCloud 6 (with the issue given above). Hope this is OK.

@blizzz blizzz closed this as completed Mar 5, 2013
@issamo12
Copy link

hi, i was looking for so long for a solution to a problem regarding quotas, i'm working now with both owncloud7 and 8 versions, for the first time when a user sign in the quota is updated successfuly, but if i change the quota in the ldap, it does not get updated ?

@blizzz
Copy link
Contributor

blizzz commented Apr 13, 2015

Once every 24h.

@SpeicherBox
Copy link

@issamo12 I think i found a solution for your Problem. I had the same issue as well an 24h are to long for me. You can edit the interval in the File \apps\user_ldap\lib\user\user.lib at line 209 manually. Just edit the value in Seconds. 86400 = 24h.

But keep in mind that this will increase server and network load!

@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants