LDAP列CSVDE导出顺序 [英] LDAP Column Order of CSVDE Export

查看:166
本文介绍了LDAP列CSVDE导出顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临的问题, csvde.exe ActiveDirectory 导出更改列的顺序。我知道在 CSVDE 文档

I am facing the problem, that the csvde.exe export from an ActiveDirectory changes the order of the columns. I am aware of the following line in the CSVDE documentation:


LDAP可以以任何顺序返回属性,csvde不会试图对列施加任何命令。

LDAP can return attributes in any order, and csvde does not attempt to impose any order on the columns.

我也看到了问题。但我想知道为什么 LDAP 在不同的pc或甚至不同的查询返回不同的订单。让我给你一个例子:

I also saw this question. However I was wondering why LDAP is returning different orders on different pcs or even on different queries. Let me show you an example:

这两个命令

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

完全相同,期望组织单位。但我有一个 pc ,将获得 csv 列顺序的第一个查询 objectClass,SamAccountName,CN,Distinguishname,memberOf

The are exactly the same, expect for the organisational unit. But I have a pc, that will get the csvcolumn order for the first query: objectClass,SamAccountName,CN,Distinguishname,memberOf

c $ c> query :

objectClass,SamAccountName,CN,memberOf,Distinguishname

And for the second query:
objectClass,SamAccountName,CN,memberOf,Distinguishname

我想知道为什么会发生这种情况?因为在另一个 pc 这工作像预期。有什么已知的解决方案?可能是 csvde

I was wondering why this is happening? Because on another pcthis works like expected. Are there any known solutions? Maybe another program than csvde?

推荐答案

是不可重复的,即,排序是不可重复的或可预测的。 LDAP客户端不能假定在LDAP搜索结果中对条目,属性或属性选项进行排序。

The results of an LDAP search is not repeatable, that is, the ordering is not repeatable, or predictable. LDAP clients must not assume ordering of the entries, attributes, or attribute options in an LDAP search result.

  • LDAP: Ordering
  • LDAP: Programming Practices

这篇关于LDAP列CSVDE导出顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆