Booked Scheduler Community Support
January 23, 2019, 01:40:38 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked is proud to recommend Shift Capsule in the employee shift scheduling space www.ShiftCapsule.com
 
   Home   Help Login Register  
Pages: [1] 2 3 ... 10
 1 
 on: January 21, 2019, 04:14:03 PM 
Started by pvdemael - Last post by GregoryHorton
It seems to me that the names in this case have no meaning. I wouldn't change the name of my salon or some kind of service just because it sounds better. Also in this case, it doesn't affect anything. Now everyone uses the phrase "online booking" and even the software that we use thanks to https://beautyprosoftware.com/blog/online-booking-feature-for-your-salon-website/ also use such a term, but speaking to our clients we use both reservation abd booking, so that's not a big deal. It's better to think about how to change your service for the better than to change ordinary words.

 2 
 on: January 21, 2019, 02:26:37 PM 
Started by davemason - Last post by davemason
So basically fixed this by rolling back the packages installed with unattended-upgrades. For anyone interested, it's the followng set of commands:

List out recently installed packages:
Code:
find /var/lib/dpkg/info/ -name \*.list -mtime -5 | sed 's#.list$##;s#.*/##'

Check the versions previously installed with apt-cache policy (libpolkit-agent-1-0:amd64 used as an example):
Code:
apt-cache policy libpolkit-agent-1-0:amd64

Downgrade the package to the previous version:
Code:
apt-get install libpolkit-agent-1-0:amd64=0.105-4ubuntu2

Kick a reboot and this seems to fix things, although I'm not sure exactly why. Time to upgrade to 18.04 LTS I think!

 3 
 on: January 21, 2019, 10:52:10 AM 
Started by davemason - Last post by davemason
Hello forum,

In case anyone else has hit this recently, I'm running Booked 2.6.4 with the LDAP plugin enabled. Everything was working fine until the 17th of January when I get the "UNKNOWN ERROR: return to the last page you were on" error upon login.

If I disable Ldap in ./booked/config/config.php, users who are already in the DB can log in fine. I don't think anything has changed server side and the credentials to bind LDAP are still good (and can be used via LDAPSEARCH on the command line). Two machines have now had this problem and I'm scratching my head about why.

Log shows this:
Quote
2019-01-18T09:53:40+00:00 [1603] DEBUG default - [User=  ()] Loading plugin. Type=Authentication, Plugin=Ldap [File=/var/www/booked-2.6.4/lib/Common/PluginManager.php,Line=209]
2019-01-18T09:53:44+00:00 [1603] DEBUG default - [User=  ()] Loading plugin. Type=Authentication, Plugin=Ldap [File=/var/www/booked-2.6.4/lib/Common/PluginManager.php,Line=209]
2019-01-18T09:53:44+00:00 [1603] DEBUG default - [User=  ()] Trying to connect to LDAP [File=/var/www/booked-2.6.4/plugins/Authentication/Ldap/Ldap2Wrapper.php,Line=51]
2019-01-18T09:53:44+00:00 [1603] ERROR default - [User=  ()] Could not connect to LDAP server. Check your settings in Ldap.config.php : Bind failed: Can't contact LDAP server: Unknown Net_LDAP2 Error (-1) [File=/var/www/booked-2.6.4/plugins/Authentication/Ldap/Ldap2Wrapper.php,Line=57]
2019-01-18T09:53:44+00:00 [1603] ERROR default - [User=  ()] Uncaught exception: exception 'Exception' with message 'Could not connect to LDAP server. Check your settings in Ldap.config.php : Bind failed: Can't contact LDAP server: Unknown Net_LDAP2 Error (-1)' in /var/www/booked-2.6.4/plugins/Authentication/Ldap/Ldap2Wrapper.php:58

My best guess is that some package has been updated that has broken LDAP authentication. This is the most recent package upgrades:
Quote
Start-Date: 2019-01-10  06:44:02
Upgrade: libnss3-nssdb:amd64 (3.28.4-0ubuntu0.14.04.3, 3.28.4-0ubuntu0.14.04.4), libnss3:amd64 (3.28.4-0ubuntu0.14.04.3, 3.28.4-0ubuntu0.14.04.4)
End-Date: 2019-01-10  06:44:02

Start-Date: 2019-01-11  06:36:21
Upgrade: libgssapi-krb5-2:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libkrb5-3:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libkadm5clnt-mit9:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), krb5-user:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), krb5-locales:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libkdb5-7:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libgssrpc4:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libkadm5srv-mit9:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libkrb5support0:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4), libk5crypto3:amd64 (1.12+dfsg-2ubuntu5.2, 1.12+dfsg-2ubuntu5.4)
End-Date: 2019-01-11  06:36:23

Start-Date: 2019-01-16  06:33:45
Upgrade: libarchive13:amd64 (3.1.2-7ubuntu2.6, 3.1.2-7ubuntu2.7)
End-Date: 2019-01-16  06:33:46

Start-Date: 2019-01-17  06:29:45
Upgrade: libpolkit-agent-1-0:amd64 (0.105-4ubuntu3.14.04.2, 0.105-4ubuntu3.14.04.5), policykit-1:amd64 (0.105-4ubuntu3.14.04.2, 0.105-4ubuntu3.14.04.5), libpolkit-backend-1-0:amd64 (0.105-4ubuntu3.14.04.2, 0.105-4ubuntu3.14.04.5), libpolkit-gobject-1-0:amd64 (0.105-4ubuntu3.14.04.2, 0.105-4ubuntu3.14.04.5)
End-Date: 2019-01-17  06:29:46

Any thoughts would be appreciated if anyone has more experience with LDAP than I.

Dave

 4 
 on: January 19, 2019, 12:37:19 PM 
Started by dilly - Last post by GregoryHorton
Pretty interested

 5 
 on: January 18, 2019, 08:12:58 PM 
Started by andyrav - Last post by TechCoder
As you already see, Booked isn't highly configurable for 'cool' application engineered mods.

However, you could create an externally controlled mechanism (a database table where you could enable 0/1 via an Administrated control panel of your choosing...) and have the 'ability to choose' it or not in a PreRes plugin (checking against the new table....) - with that you can control by Groups, Users, Resources and a lot more as to permissions of what might go on, etc...... (though it doesn't sound like you need a lot of permissions stuff, at least you now know it can be done...)

The User would get a "you can't do that" message (again, of your choosing) when they tried to access that attribute (and didn't pass your permissions rules).

Not quite a "value inactive", but the best we can do with Booked without doing a lot of core mod stuff.

Works for a lot of people - and those that select things they shouldn't get an idea pretty quick - their reservation won't go through by choosing that one, so they don't choose it! Smiley

Of course, this works best with a bit of up-front user training on your part - software can't always be the whole solution - but for a moderately simple and certainly not terribly expensive solution, the PreRes plugin with an external controlled set of data is a good way to go (IMHO).

If you need assistance building such a plugin, we can help!  https://CashFlowProducts.com/helpdesk

 6 
 on: January 18, 2019, 05:38:00 PM 
Started by pemby - Last post by pemby
I think there may be a bug in the authentication API in relation to built-in python requests library.  My assumption is the python requests library would be the more compliant of the two. 

In python, I am able to get a session token by calling wget as noted here->http://php.brickhost.com/forums/index.php?topic=12387.0


Code:
import json
from subprocess import check_output


def main():
    out = check_output(''' wget -qO- --post-data '{"username":"foo","password":"bar"}' http://mydomain/booked/Web/Services/index.php/Authentication/Authenticate''', shell=True)
    sesson_dict = json.loads(out)


if __name__ == '__main__':
    main()

But using python requests,

The following code segments do not return as "authenticated"

Code:
import  requests
url = 'some url'

data = {
    'username': 'foo',
    'password': 'bar'
}
r = requests.post(url, data=data)

or

Code:
    r = requests.post(url, auth=('foo','bar'))


or

Code:
s = requests.Session()
s.auth = ('foo','bar')
r = s.post(url)


I also created a StackOverflow question
https://stackoverflow.com/questions/54225339/how-would-i-rewrite-this-wget-post-statement-in-python-3-x


I would really like to avoid making the system.os call and find a way that uses the python 3.x requests library.
Any ideas on what I am doing wrong?


 7 
 on: January 18, 2019, 02:48:13 PM 
Started by andyrav - Last post by andyrav
It is going to change a lot, when customers leave us. so would get quite messy
Guess it would need redesigning so each value was in the database with enable 0/1

shame

 8 
 on: January 18, 2019, 02:06:25 PM 
Started by vikasiitb - Last post by nwpro
Use Custom Attributes (Application Management, Custom Attributes). 

 9 
 on: January 18, 2019, 12:48:59 PM 
Started by maluco-beleza - Last post by clarinet
I have independently come to the same conclusion when trying to synchronize LDAP groups (see http://php.brickhost.com/forums/index.php?topic=16213.0). Neither the sync.groups attribute is processed correctly. Similar patch applies here.

Code:
--- LdapOptions.php.orig        2019-01-16 16:09:12.336523141 +0100
+++ LdapOptions.php     2019-01-16 16:09:20.991525735 +0100
@@ -156,7 +156,7 @@
      */
     public function SyncGroups()
     {
-        return $this->_options[LdapConfig::SYNC_GROUPS];
+        return $this->GetConfig(LdapConfig::SYNC_GROUPS, new BooleanConverter());
     }
 
     /**
@@ -164,8 +164,7 @@
      */
     public function CleanUsername()
     {
-        $converter = new BooleanConverter();
-        return !$converter->Convert($this->_options[LdapConfig::PREVENT_CLEAN_USERNAME]);
+        return !$this->GetConfig(LdapConfig::PREVENT_CLEAN_USERNAME, new BooleanConverter());
     }
 
 }

 10 
 on: January 18, 2019, 08:52:35 AM 
Started by vikasiitb - Last post by vikasiitb
Hi all,

How do I add some more fields in the reservation page apart from 'Title of reservation' and 'Description of reservation' which are present on the reservation page? I want to add two more custom fields: 'Number of participants' and 'Lab exam/ Workshop reservation' respectively. How do I do it? Please help.

Thanks and Regards
Vikas Kumar

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!