ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Levas" <rle...@hortonworks.com>
Subject Re: Review Request 31046: Kerberos: Escape special characters in Distinguished Names used for queries in Active Directory
Date Sat, 14 Feb 2015 04:00:30 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31046/
-----------------------------------------------------------

(Updated Feb. 13, 2015, 11 p.m.)


Review request for Ambari, John Speidel and Robert Nettleton.


Bugs: AMBARI-9637
    https://issues.apache.org/jira/browse/AMBARI-9637


Repository: ambari


Description
-------

Escape special characters in Distinguished Names used for queries in Active Directory, else
query (or attribute updates) will fail with an error like

```
[LDAP: error code 1 - 000020D6: SvcErr: DSID-0310081B, problem 5012 (DIR_ERROR), data 0 ^@]
```

The following characters should be escaped using a \:

* Forward Slash '/'
* Comma	`,`
* Backslash character 
* Pound sign (hash sign) `#`
* Plus sign `+`
* Less than symbol	`<`
* Greater than symbol `>`
* Semicolon `;`
* Double quote (quotation mark) `"`
* Equal sign `=`
* Leading or trailing spaces


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/ADKerberosOperationHandler.java
2dbd50e 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/KerberosOperationHandler.java
c51475e 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/kerberos/ADKerberosOperationHandlerTest.java
e5d7505 
  ambari-server/src/test/java/org/apache/ambari/server/serveraction/kerberos/KerberosOperationHandlerTest.java
8dab409 

Diff: https://reviews.apache.org/r/31046/diff/


Testing
-------

Manually tested using a Keberized cluster and Active Directory

# Jenkins test results : PENDING


Thanks,

Robert Levas


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message