プロジェクト

全般

プロフィール

Vote #63854

完了

LDAP Filter can't have spaces

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Administration_8
対象バージョン:
開始日:
2008/09/11
期日:
進捗率:

0%

予定工数:
category_id:
8
version_id:
2
issue_org_id:
1890
author_id:
2095
assigned_to_id:
0
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

ruby-net-ldap doesn't like the ldap filter to contain spaces. The input for LDAP attributes should be check for this and other requirements if necessary. The ldap search function fails silently if there is a space.

Ex. (which happened to me)

I copied and pasted the sAMAccountName attribute into the login field, I didn't notice but I grabbed the space at the end also. I couldn't get LDAP auth to work b/c the filter was set to "sAMAccountName =ryan.gibbons" . Even a simple .trim() fucntion would fix this (not sure if ruby has that), but I think check the input for invalid LDAP filter characters wouldn't be a bad thing.

I am running r1784 from svn.


journals

Attribute names are now stripped (r1894).

> I think check the input for invalid LDAP filter characters wouldn't be a bad thing

I agree but I'm not sure what characters should be allowed. Maybe @/^[a-zA-Z0-9\-]+$/@ ?

--------------------------------------------------------------------------------
Fill a request for LDAP attribute validation if needed.
--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリAdministration_8 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0