I am writing an application that is linked to Active Directory, and I need to store the userPrincipalName in a database table, but I do not know how big the field would need to be.
我正在编写一个链接到Active Directory的应用程序,我需要将userPrincipalName存储在数据库表中,但我不知道该字段需要多大。
On MSDN, no Length is given, and neither in RFC 822. Now, before I revert to the DOMAIN\Username that has a defined Length (sAMAccountName is less than 20 chars, NETBIOS Domain Name is max. 15 chars), I wonder if anyone knows what the limit is either by standard, or by the implementation within both Windows 2003 and Windows 2008 domains.
在MSDN上,没有给出长度,也没有给出RFC 822.现在,在我恢复到具有已定义长度的DOMAIN \ Username之前(sAMAccountName少于20个字符,NETBIOS域名最多15个字符),我想知道是否任何人都知道限制是通过标准,还是通过Windows 2003和Windows 2008域中的实现。
2 个解决方案
#1
6
On Win2k3 SP2 the longest userPrincipleName it allows me to create is 1013 characters long.
在Win2k3 SP2上,它允许我创建的最长userPrincipleName是1013个字符长。
#2
1
no it's not possible to change the length of characters in Logon Name of Active directory.
不能在Active Directory的登录名中更改字符长度。
#1
6
On Win2k3 SP2 the longest userPrincipleName it allows me to create is 1013 characters long.
在Win2k3 SP2上,它允许我创建的最长userPrincipleName是1013个字符长。
#2
1
no it's not possible to change the length of characters in Logon Name of Active directory.
不能在Active Directory的登录名中更改字符长度。