Comments (10)
@Jeffrey-FB Good to hear you found the cause! Will therefore close this off.
Now how do i add a 2nd ldap server in my .env for redundancy?
We don't specifically support/handle/test redundancy. PHP has some level of support built in (but I'm not sure on the full extent or handling of this) which I think you might be able to use via something like this:
LDAP_SERVER="ldaps://my.domain.com:636 ldaps://my.other.domain.com:636"
But again that's not something I've tested.
from bookstack.
Hi All
I really need to get this working, took me 3 mins last time to log.
I cannot find anything in the logs or it's not logging correctly.
How can i troubleshoot this?
Any help would be appreciated
from bookstack.
Changed a few setting which helped a little bit but still can take up to 2 mins to login for a returning user.
now using
LDAP_SERVER=ldaps://my.domain.com:636
And removed tls
#LDAP_START_TLS=false
What else could i try?
from bookstack.
If you repeatedly log in and out, does the login time continue to vary? If so, what does that pattern roughly look like?
Or is it just the first login that's slow?
from bookstack.
Hey @ssddanbrown
There doesn't seem to be a pattern.
In google if i log out and then back in, most times it's pretty quick.
If I've been using bookstack a while then sign out, it'll take a while to log back in.
If i close the browser down it's a long login every time.
Firefox seems to take long every time.
As does Microsoft edge.
This is all with the same user account.
Thoughts, more troubleshooting options?
from bookstack.
- What AWS service(s) are you using to host BookStack?
- How does BookStack reach your AD system in office (tunnels, vpn, proxies)?
If possible, you could test the connection directly on the host system using the ldapsearch
command, just to check a non-bookstack method from the same host.
from bookstack.
Hey @ssddanbrown
- Bookstack is an EC2 instance
- It's connected via our VPC
We have other services in AWS that all communicate with our AD servers on perm.
i.e I can ping my AD server
I have configured realm with `realm discover' I can connect to my bookstack server with sshd using my AD credentials.
I've not really used ldapsearch before. I might need a little help with this one?
I've tried one of these examples
ldapsearch -H ldap://<server_name>:389 -D "<distinguished_name>" -w <password> -b "<search_base>" -s <scope> <filter>
This is what i get in return
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
I'll endeavor to get this working while i wait for a reply from you.
Will post my progress, let me know if there is anything else you want me to try?
from bookstack.
Okay so i followed this guide
So now I have ldap and ldaps working with ldapsearch
Both return instantly on the terminal.
FYI ping results icmp_seq=1 ttl=124 time=1.73 ms
No change to login times on Bookstack.
What do we try next?
from bookstack.
Okay i figured out what the problem was.
I was pointing to our domain for ldap my.domain.com
But we have multiple serving other regions
I've change it to hostname.my.domain.com and this has resolved the delay in login.
Now how do i add a 2nd ldap server in my .env for redundancy?
from bookstack.
That looks to be working, i can still login with adding that.
That's for all the help.
from bookstack.
Related Issues (20)
- Extend callouts to allow longer notes with heading, more than one paragraph, lists etc. HOT 1
- OAuth Patreon Support HOT 1
- Page Deletion after image cleanup HOT 2
- Add book and chapter title in the response of /api/search/ endpoint
- Create relative (not absolute) URLs in image linking and wiki type internal linking HOT 1
- Arabic letters issue on export PDF HOT 1
- Unable to upload images to self hosted Minio S3 service HOT 6
- Will the media library eventually be accessible from more than just the pages? HOT 1
- APP_DEFAULT_DARK_MODE var HOT 7
- Different line height between light and dark mode HOT 1
- Bookstack SQL error HOT 1
- Add option to make the search also search comments
- LDAP Group Sync using recursive Groups HOT 2
- .env file shows db user as cleartext HOT 3
- Fresh install - Frontend and JS bugs HOT 7
- Views log for guest user
- List of tags on landing page
- Error in the installation phase - BookStack haven't access to the database HOT 2
- Full text in search endpoint to improve CustomGPTs and other AI services HOT 1
- Need an "Exec" role HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookstack.