Commit Graph
219 Commits
Author SHA1 Message Date
Jaime Melis 1d62fbcfc2 Revert "Bump year to 2018 (#1624)"
This reverts commit 5f6936d1b0.

Better not to play with configuration files...
2018-01-04 15:57:51 +01:00
Vlastimil Holer 5f6936d1b0 Bump year to 2018 (#1624) 2018-01-02 18:28:03 +01:00
Vlastimil Holer 4a8c96fef7 B #1489: Fix LDAP group membership checks with custom 'user_group_field'
(cherry picked from commit 9eecb45924)
2017-11-27 09:49:47 +01:00
Javi Fontan 4c2ad0f144 B #5445: fix ldap group search for non rfc2307bis schema 2017-10-09 12:02:31 +02:00
Dušan Baran d881541409 Ldap filter can use ; character
This change will allow user_field to contain characters such as `;`. This is useful because some of ldap attributes look like `login;organization`.

(cherry picked from commit ef0561c90b)
2017-08-25 13:06:33 +02:00
Frederik Gladhorn 3316e62356 Fix authentication for users with non-ascii chars in their names
ldap uses base64 encoding iff there are non-ascii chars.
For some reason the query seems to then return the user_group_name
(src/authm_mad/remotes/ldap/authenticate) as ascii-encoded.
This is only relevant when a group is set in ldap_auth.conf, in which
case ldap.is_in_group is called.
By forcing the encoding to utf-8 the authentication succeeds.

Before this error was encountered:
Exception raised authenticating to LDAP
(UTF-8 regexp with ASCII-8BIT string)>
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:755:in `scan'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:755:in
`parse_filter_branch'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:737:in
`parse_paren_expression'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:682:in `parse'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:673:in `initialize'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:667:in `new'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:667:in `parse'
/usr/lib/ruby/vendor_ruby/net/ldap/filter.rb:341:in `construct'
/usr/lib/ruby/vendor_ruby/net/ldap/connection.rb:322:in `search'
/usr/lib/ruby/vendor_ruby/net/ldap.rb:753:in `block (2 levels) in
search'
/usr/lib/ruby/vendor_ruby/net/ldap.rb:1228:in `use_connection'
/usr/lib/ruby/vendor_ruby/net/ldap.rb:752:in `block in search'
/usr/lib/ruby/vendor_ruby/net/ldap/instrumentation.rb:19:in `instrument'
/usr/lib/ruby/vendor_ruby/net/ldap.rb:751:in `search'
/usr/lib/one/ruby/opennebula/ldap_auth.rb:163:in `is_in_group?'
authenticate:85:in `block in <main>'
authenticate:59:in `each'
authenticate:59:in `<main>'
Could not authenticate user tavestbo

(cherry picked from commit 87c31aec7f)
2017-08-25 12:26:38 +02:00
Javi Fontan 5d1e5f6a4c B #3939: ldap search attributes should be an array 2017-08-25 10:14:58 +02:00
Javi Fontan e0fb9be73a Merge pull request #292 from 4nd3r/master
support rfc2307 groups in ldap
2017-06-08 12:35:53 +02:00
Javi Fontan 8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Ander Punnar c66c9e3803 add some clarification 2017-05-04 14:06:28 +03:00
Ander Punnar becb1d3305 add rfc2307bis default value 2017-05-04 13:54:07 +03:00
Ander Punnar 65dcad6941 support rfc2307 groups 2017-05-04 13:52:28 +03:00
Ruben S. Montero 27956d9891 Fix server_cipher client for Ruby 2.4 (crypt token must be 32bytes) 2017-02-21 16:57:24 +01:00
Jaime Melis ab9b2e8eed F #4716: Cast the timeout to integer 2016-09-13 17:07:20 +02:00
Javi Fontan 7006a98492 feature #4716: add --timeout parameter to drivers 2016-09-08 18:19:18 +02:00
Jaime Melis 0c3b229a91 Bug #4761: Fix serverardmin login (one_auth_mad) 2016-09-07 12:56:13 +02:00
Jaime Melis 50c1e52b5e Bug #4396: Escape filtering symbols when looking for a user 2016-05-24 10:14:02 +02:00
Javi Fontan e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Javi Fontan aaad768cab bug #4033: show error message on ldap connection error
(cherry picked from commit 4b9e02958d)
2015-11-11 13:00:54 +01:00
Javi Fontan c214c6f32a bug #4107: bug in ldap group code
Tested with net-ldap 0.8.0

(cherry picked from commit c825150c06)
2015-11-10 18:33:41 +01:00
Jaime Melis e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Justin Riley 326ed81d1f fix default group bug in get_groups()
Users should only be added to the default group if it's defined and the user's groups aren't mapped (ie get_groups() is empty). This is correctly handled by the `remotes/auth/ldap/authenticate` script by checking whether or not get_groups returns an empty list.
2015-07-06 16:28:40 -04:00
Javi Fontan 4b08d76fbf Whitespace cleanup 2015-07-01 15:18:28 -04:00
Jaime Melis 8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Javi Fontan 1f20b7c29c bug #3354: ask for memberOf attribute in ldap auth
Patch sent by Fabian Zimmermann.

(cherry picked from commit a2a25673b4)
2014-11-18 12:58:53 +01:00
Ruben S. Montero 0f44677325 feature #2796: Client side utilities to manage tokens: Ruby OCA, oneuser CLI. Also the token management across drivers (SSH & X509 included) is now homogenous 2014-09-06 22:22:40 +02:00
Javi Fontan 4be47e357a feature #3159: map AD groups to ONE groups in ldap driver
Generates mapping file and returns a list of IDs of ONE mapped groups that
the user should belong.
2014-08-22 12:55:05 +02:00
Jaime Melis 11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00
Javi Fontan 6f452b3dfa feature #1916: bug in ldap auth 2013-04-30 13:01:16 +02:00
Javi Fontan 2205548990 feature #1916: Allow configuration of ldap group member field
Patch by Jean-Philippe Garcia Ballester
2013-04-26 17:17:11 +02:00
Javi Fontan 583eef9867 Revert "feature #1916: add user_group_field support to ldap"
This reverts commit d30b0f1bd1.
2013-04-26 17:16:32 +02:00
Javi Fontan d30b0f1bd1 feature #1916: add user_group_field support to ldap 2013-04-25 17:53:49 +02:00
Ruben S. Montero 21fe21c95f bug #1919: get rid of some checks. 2013-04-25 15:22:36 +02:00
Javi Fontan c0adc81af6 bug #1919: Do not ask ssh password twice
Patch by Jean-Philippe Garcia Ballester

Conflicts:
	src/authm_mad/remotes/ssh/ssh_auth.rb
2013-04-24 17:59:19 +02:00
Javi Fontan 138181ee3c bug #1861: fix password black out when authentication fails 2013-04-24 17:52:24 +02:00
Ruben S. Montero ac061ca699 bug #1918: Update regular expression to show keys in Openssl compatible form 2013-04-23 00:26:05 +02:00
Javi Fontan 741d443a46 feature #1860: group membership field name configurable for ldap 2013-04-08 17:46:50 +02:00
Javi Fontan ca1b6ab41f feature #1790: bug in crl check function 2013-03-07 12:45:04 +01:00
Javi Fontan aedb8239e7 feature #1790: check crl for x509 auth
This patch is based on the work done by Hyunwoo Kim from FermiLab.

More info at http://dev.opennebula.org/issues/1790
2013-03-06 18:44:55 +01:00
Javi Fontan efbaff9b9a feature #1741: escape spaces instead of deleting them in x509 auth 2013-02-18 17:51:39 +01:00
Jaime Melis 7357bffe34 Update copyright notice 2013-01-24 16:18:30 +01:00
Jaime Melis af61e33f8c Update year to 2013 2013-01-24 16:03:57 +01:00
Javi Fontan 28773a229e feature #1700: move auth libraries to OpenNebula module 2012-12-20 04:47:39 -06:00
Javi Fontan 31ed95618d bug #1171: add support for tls in ldap auth
Patch provided by Nicolas Agius <nicolas.agius@lps-it.fr>
2012-12-17 18:31:34 +01:00
Javi Fontan c17f7ac307 bug #1385: ldap password is not shown on error log 2012-09-17 12:04:46 +02:00
Javi Fontan 62bf3f4bcd bug #1385: ldap driver now returns the user dn as password 2012-09-14 18:08:56 +02:00
Javi Fontan 97b537ad27 bug #1394: fix ldap authentication when using username 2012-09-14 17:55:07 +02:00
Ruben S. Montero e793ca89e1 feature #1288: Remove previous quota drivers 2012-06-10 20:40:18 +02:00
Javi Fontan e5d6e2c885 features #1236 and #1252: make URI escape work with ruby 1.8.7 2012-05-16 19:23:34 +02:00
Javi Fontan be639816c6 features #1236 and #1252: move unescape to ldap auth 2012-05-16 18:16:26 +02:00