istarion / aptly-web

Web-UI for Aptly
Apache License 2.0
1 stars 0 forks source link

not using ldap #1

Open thinksabin opened 6 years ago

thinksabin commented 6 years ago

hi,

I set postgres server and ran aptlyweb_init_db. And the website was up and running. But authentication is going to ldap. In the config file i have commented out all the ldap related settings. I don't have ldap server to connect to. Is there any way i can disable ldap connection by default?

istarion commented 6 years ago

Hello!

We don't store user passwords now, but you can disable authentication by setting LOGIN_DISABLED=true in configuration. Another option is adding some logic before this line: https://github.com/istarion/aptly-web/blob/d8ef3662a0924f5c942fa45ed4d92fae49bf8aae/aptlyweb/views.py#L79 Pull requests are appreciated

I have some ideas on better UX, you can find it in branch feature/angular4 (only design stub now) https://www.youtube.com/watch?v=6SRm80XjxkU

thinksabin commented 6 years ago

Thanks for quick reply.

I went with LOGIN_DISABLED = True

earlier i did try to change the auth logic, but my changes did not reflect.

The problem encountered it the sym link for index.html. Seems like symlink is pointing to your machine. and you ended up uploading symlink in git.

I'm getting this error: raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: index.html

And in git is like this: https://github.com/istarion/aptly-web/blob/develop/aptlyweb/templates/index.html

also, broken link to index.html in case of feature branch.

Nice UX concept. Will try to contribute under my little expertise :)

istarion commented 6 years ago

Yes, you need to build static previously and provide valid symlink to backend. Readme have been updated.

thinksabin commented 6 years ago

using nodejs version v4.2.6 couldnt successfully work with npm install. i got these errors:

`root@ubuntuserver:/home/ubuntu/aptly-env/aptly-web/aptlyweb/static# npm install -g gulp npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated natives@1.1.3: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. /usr/local/bin/gulp -> /usr/local/lib/node_modules/gulp/bin/gulp.js /usr/local/lib └── gulp@3.9.1

root@ubuntuserver:/home/ubuntu/aptly-env/aptly-web/aptlyweb/static# npm install npm WARN deprecated angular-ui-router@1.0.3: This npm package 'angular-ui-router' has been renamed to '@uirouter/angularjs'. Please update your package.json. See https://ui-router.github.io/blog/uirouter-scoped-packages/

@uirouter/core@5.0.3 install /home/ubuntu/aptly-env/aptly-web/aptlyweb/static/node_modules/@uirouter/core node ./migrate/migratewarn.js

sh: 1: node: not found npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.3 npm ERR! Linux 4.4.0-112-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! @uirouter/core@5.0.3 install: node ./migrate/migratewarn.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the @uirouter/core@5.0.3 install script 'node ./migrate/migratewarn.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the @uirouter/core package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./migrate/migratewarn.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs @uirouter/core npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls @uirouter/core npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/aptly-env/aptly-web/aptlyweb/static/npm-debug.log root@ubuntuserver:/home/ubuntu/aptly-env/aptly-web/aptlyweb/static# `