[英]LDAP Column Order of CSVDE Export
I am facing the problem, that the csvde.exe
export from an ActiveDirectory
changes the order of the columns. 我正面临一个问题,即从
ActiveDirectory
导出csvde.exe
更改列的顺序。 I am aware of the following line in the CSVDE
documentation : 我知道
CSVDE
文档中的以下行:
LDAP can return attributes in any order, and csvde does not attempt to impose any order on the columns.
LDAP可以按任何顺序返回属性,并且csvde不会尝试对列强加任何顺序。
I also saw this question . 我也看到了这个问题 。 However I was wondering why
LDAP
is returning different orders on different pcs or even on different queries
. 但是我想知道为什么
LDAP
在不同的PC甚至不同的queries
上返回不同的订单。 Let me show you an example: 让我给你看一个例子:
These are the two commands
: 这是两个
commands
:
csvde -u -f userdata_it.csv -d "ou=it,dc=your-company,dc=org" -l objectClass,SamAccountName,CN,Distinguishname,memberOf
csvde -u -f userdata_entwicklung.csv -d "ou=entwicklung,dc=your-company,dc=org" -l objectClass,SamAccountName,CN,Distinguishname,memberOf
The are exactly the same, expect for the organisational unit
. 对于
organisational unit
,它们是完全相同的。 But I have a pc
, that will get the csv
column order for the first query
: objectClass,SamAccountName,CN,Distinguishname,memberOf
但是我有一台
pc
,它将获得第一个query
的csv
列顺序: objectClass,SamAccountName,CN,Distinguishname,memberOf
And for the second query
: 对于第二个
query
:
objectClass,SamAccountName,CN,memberOf,Distinguishname
I was wondering why this is happening? 我想知道为什么会这样吗? Because on another
pc
this works like expected. 因为在另一台
pc
它的工作与预期的一样。 Are there any known solutions? 有没有已知的解决方案? Maybe another program than
csvde
? 也许是
csvde
以外的另一个程序?
The results of an LDAP search is not repeatable, that is, the ordering is not repeatable, or predictable. LDAP搜索的结果不可重复,即顺序不可重复或不可预测。 LDAP clients must not assume ordering of the entries, attributes, or attribute options in an LDAP search result.
LDAP客户端不得假设LDAP搜索结果中条目,属性或属性选项的顺序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.