These are chat archives for allegro/ralph

5th
Oct 2016
Pete
@kasim1r
Oct 05 2016 07:54
please?
✪ vi4m Marcin Kliks
@vi4m
Oct 05 2016 07:55
any problems with ldap?
Pete
@kasim1r
Oct 05 2016 07:55
ldap.FILTER_ERROR: {'desc': 'Bad search filter'}
on ldap_sync
just like the guy in the issue
✪ vi4m Marcin Kliks
@vi4m
Oct 05 2016 07:56
@ar4s will help you with it
Pete
@kasim1r
Oct 05 2016 07:56
and nobody posted an actual solution
cool
Arkadiusz Adamski
@ar4s
Oct 05 2016 08:22
Pete
@kasim1r
Oct 05 2016 08:23
wow ok, i will try to adapt that to my stuff
thanks, mate
Arkadiusz Adamski
@ar4s
Oct 05 2016 08:25
BTW I'm not expert of LDAP but I do my best :smile:
Please also note that variable AUTH_LDAP_USER_FILTER starts with (|( and ends with ))
Pete
@kasim1r
Oct 05 2016 08:33
you guys are not mapping anyone to "staff"?
if user is active then is staff
Pete
@kasim1r
Oct 05 2016 08:36
aha, great
Pete
@kasim1r
Oct 05 2016 08:44
ok, that did work without errors
I even see group mappings, just no users were imported
or will the ralp user accounts be generated when they first log in?
*ralph
I already saw that with one other person, the account was auto-generated when they logged in with their AD credentials, but I had to manually tick the "staff" and "active" options in the user account
Pete
@kasim1r
Oct 05 2016 08:54
tried with a test user now. his account got auto-generated, but not "active", not "staff"
Arkadiusz Adamski
@ar4s
Oct 05 2016 09:10
maybe try
AUTH_LDAP_USER_FLAGS_BY_GROUP = { "is_active": "cn=active,ou=groups,dc=example,dc=com", "is_staff": ["cn=staff,ou=groups,dc=example,dc=com", "cn=admin,ou=groups,dc=example,dc=com"], "is_superuser": "cn=superuser,ou=groups,dc=example,dc=com" }
Pete
@kasim1r
Oct 05 2016 09:10
okay
ivanususu
@ivanususu
Oct 05 2016 09:21
can someone tell me how to swap the rack around? RU1 to be on top and RU46 on bottom?
Pete
@kasim1r
Oct 05 2016 09:21
OK, nesting obivously only works for "normal" ralph groups, f.e. "Support" or "Admins"
not for AUTH_LDAP_GROUP_MAPPINGor AUTH_LDAP_USER_FLAGS_BY_GROUP
Pete
@kasim1r
Oct 05 2016 09:29
which in turn means, I cannot make it so that people who log in are automatically "active" and "staff" tagged
Mateusz Kurek
@mkurek
Oct 05 2016 09:31
@ivanususu it's not possible at the moment. and why do you want to do that?
ivanususu
@ivanususu
Oct 05 2016 09:37
@mkurek well, because our rack layout is like that
Pete
@kasim1r
Oct 05 2016 09:37
well, just take your label printer and renumber the height units :)
Mateusz Kurek
@mkurek
Oct 05 2016 09:37
do you want to do this for all your racks or selected ones?
ivanususu
@ivanususu
Oct 05 2016 09:38
for all racks
Pete
@kasim1r
Oct 05 2016 09:38
jeez, sorry.
damian1976
@damian1976
Oct 05 2016 09:38
This message was deleted
Mateusz Kurek
@mkurek
Oct 05 2016 09:39
@ar4s any idea for @ivanususu issue? :)
Pete
@kasim1r
Oct 05 2016 10:52
@ivanususu doesn't the "orientation" field do what you need?
ivanususu
@ivanususu
Oct 05 2016 10:57
@kasim1r nope, that's just for the text in the small squares
Pete
@kasim1r
Oct 05 2016 10:58
ah, too bad.
Arkadiusz Adamski
@ar4s
Oct 05 2016 12:45
@ivanususu allegro/ralph#2832
@ivanususu do you mean something like this?
Pete
@kasim1r
Oct 05 2016 12:48
probably, configurable per rack methinks
ivanususu
@ivanususu
Oct 05 2016 12:48
@ar4s yes! thank you
Arkadiusz Adamski
@ar4s
Oct 05 2016 12:49
Great. After we merge this allegro/ralph#2832 please update your codebase and add RACK_LISTING_ORDER_REVERSE = True to your settings.
Pete
@kasim1r
Oct 05 2016 13:07
@ar4s do you see the message I sent you?