stgraber / samba4-manager Goto Github PK
View Code? Open in Web Editor NEWA web interface to manage a remote samba4 server
License: GNU General Public License v2.0
A web interface to manage a remote samba4 server
License: GNU General Public License v2.0
The web server should support TLS and ideally, default to it.
Hi Devs,
I would like to install samba4-manager into Ubuntu 20.04 from snapd,
I've put my own "manager.cfg" into "~/snap/samba4-manager/current/" but samba4-manager seems doesn't seen it.
2022-07-14T22:34:59+02:00 samba4-manager.daemon[5137]: samba4-manager hasn't been configured yet, stopping.
2022-07-14T22:34:59+02:00 systemd[1]: Stopping Service for snap application samba4-manager.daemon...
2022-07-14T22:34:59+02:00 systemd[1]: snap.samba4-manager.daemon.service: Succeeded.
2022-07-14T22:34:59+02:00 systemd[1]: Stopped Service for snap application samba4-manager.daemon.
Enabling debug and running
snap run samba4-manager.daemon
Obtain:
samba4-manager hasn't been configured yet, stopping.
Traceback (most recent call last):
File "./samba4-manager", line 100, in <module>
raise Exception("No LDAP server in domain '%s'." %
Exception: No LDAP server in domain ''.
This is the content of my "manager.cfg" ->
SECRET_KEY = "123456789"
LDAP_DOMAIN = "foo-book"
#LDAP_SERVER = "some-specific-server.example"
#LDAP_DN = "DC=mydomain,DC=example"
#DEBUG = True
#URL_PREFIX = "/domain"
Where I'm wrong?
Many thanks!!
david
Replace current usage of python-ldap by the more modern and python3-compatible python-ldap3.
Hi,
Try to use this with number of users is around 1500.
The error appear when I click the Users tree.
The error message on the web:
"The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
::ffff:172.17.1.1 - - [04/Jun/2016 02:10:41] "GET /tree/CN=Users,DC=example,DC=com HTTP/1.1" 500 -
Any suggestion on this?
Best,
Cheers,
I got the above error for the following fields:
managedObjects
proxyAddresses
These may have come from installation of SOGo or OpenChange, one of which requires changes to Samba4's AD schema.
The fix is similar to the one mentioned in #5:
diff --git a/libs/ldap_func.py b/libs/ldap_func.py
index 04d5605..b1c84e0 100644
--- a/libs/ldap_func.py
+++ b/libs/ldap_func.py
@@ -44,7 +44,8 @@ LDAP_AD_USERACCOUNTCONTROL_VALUES = {2: ("Account is disabled", True),
LDAP_AD_BOOL_ATTRIBUTES = ['showInAdvancedViewOnly']
LDAP_AD_GUID_ATTRIBUTES = ['objectGUID']
LDAP_AD_MULTIVALUE_ATTRIBUTES = ['member', 'memberOf', 'objectClass', 'repsTo',
- 'servicePrincipalName', 'sshPublicKey']
+ 'servicePrincipalName', 'sshPublicKey',
+ 'managedObjects', 'proxyAddresses']
LDAP_AD_SID_ATTRIBUTES = ['objectSid']
LDAP_AD_UINT_ATTRIBUTES = ['userAccountControl', 'groupType']
This is blocked on #1 but once we're using python-ldap3, the rest of the codebase should be fixed where needed to work properly on python3.
I'm trying to run samba4-manager under debian 11 and samba4, and it throws a really weird error.
root@srv-dc01:~/samba4-manager-master# ./samba4-manager --config manager.cfg
Traceback (most recent call last):
File "/root/samba4-manager-master/./samba4-manager", line 114, in <module>
plugin = importlib.import_module("plugins.%s" % plugin_name)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/root/samba4-manager-master/plugins/user.py", line 22, in <module>
from wtforms import PasswordField, SelectMultipleField, TextAreaField, \
ImportError: cannot import name 'TextField' from 'wtforms' (/usr/local/lib/python3.9/dist-packages/wtforms/__init__.py)
All dependencies and requirements were installed from pip without errors.
How to resolve this error.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.