Windows Server 2008/R2: 최대 UserName 길이를 변경하시겠습니까?

Windows Server 2008/R2: 최대 UserName 길이를 변경하시겠습니까?

로컬 계정에 대한 표준 20자 UserName 최대 길이 제한을 변경할 수 있는 방법이 있습니까?

(구체적으로는 Server 2008 R2)

답변1

아니요, 20으로 고정되어 있습니다. 이는 이전 버전과의 호환성 때문이라고 생각합니다. SAMAccountName 필드를 제외하고 Active Directory에서는 더 큰 규모로 확장할 수 있지만 로컬에서는 그렇지 않습니다.

답변2

sam-accountname 속성을 참조해야 합니다. 로그온 이름은 다음과 같아야 합니다.다음 규칙:

로그온 이름 규칙

로그온 이름은 다음 규칙을 따라야 합니다.

로컬 로그온 이름은 워크스테이션에서 고유해야 하며 글로벌 로그온 이름은 도메인 전체에서 고유해야 합니다.

로그온 이름은 최대 104자까지 가능합니다. 그러나 64자를 초과하는 로그온 이름을 사용하는 것은 실용적이지 않습니다.

Microsoft Windows NT 버전 4.0 또는 이전 로그온 이름은 모든 계정에 제공되며 기본적으로 Windows 2000 로그온 이름의 처음 20자로 설정됩니다. Windows NT 버전 4.0 이하의 로그온 이름은 도메인 전체에서 고유해야 합니다.

Windows 2000 컴퓨터에서 도메인에 로그온하는 사용자는 도메인 작업 모드에 관계없이 Windows 2000 로그온 이름이나 Windows NT 버전 4.0 또는 이전 로그온 이름을 사용할 수 있습니다.

GUI에서는 문자 이름을 20개만 생성할 수 있으며, 20개를 초과하려면 프로그래밍 방식으로 생성해야 합니다.

답변3

"GUI에서는 문자 이름을 20개만 생성할 수 있으므로 20개를 초과하려면 프로그래밍 방식으로 생성해야 합니다."

나는 그 진술이 틀렸다고 말하고 싶습니다. 프로그래밍 방식으로 20자를 초과하는 사용자 이름을 만들 수 없습니다. 다음은 Windows Server 2008 R2에서 실행한 관련 VB.NET 코드입니다. 20자 이하의 사용자 이름을 만드는 데 작동하지만 사용자 이름이 20자를 초과하면 예외가 발생합니다. 직접 시도해 보세요. 진심으로, 조셉 다볼리

암호:

Imports System.DirectoryServices    'Gives us access to Directory Services.

Function Blah() As Whatever

Dim strFNMILN As String = "Christopher.B.Robinson" 'NOTE: Twenty-two characters. Dim strFullName as string = "Christopher B. Robinson"

'Declare a new "DirectoryEntry" object variable and assign to it the entry for 'this computer (the computer on which this code is running). Dim DirectoryEntryThisComputer As New DirectoryEntry("WinNT://" & Environment.MachineName & ",computer")

'Declare a new "DirectoryEntry" object variable and name it "DirectoryEntryNewUser". 'Create a new user in the local directory and assign that user to our object variable. Dim DirectoryEntryNewUser As DirectoryEntry = DirectoryEntryThisComputer.Children.Add(strFNMILN, "user")

'Add the fullname of this user. DirectoryEntryNewUser.Invoke("Put", New Object() {"fullname", strFullName })

'Add a description value. DirectoryEntryNewUser.Invoke("Put", New Object() {"description", "This is a test user."})

'Set the password for this new user (14 character minimum). DirectoryEntryNewUser.Invoke("SetPassword", New Object() {"abcdefg1234567"})

'Save this new user to the local directory (this machine's directory). DirectoryEntryNewUser.CommitChanges()

. . End Function

답변4

W2K3 AD 서버에 DSADD를 사용하고 있는데 "SAMID"의 21자 길이로 인해 실패했습니다.

C:\Users\admin-of-change>DSAdd.exe user "CN=SharePoint Service Applications XYZ,OU=Users,OU=District UVW,OU=XYZ,DC=domain-universe,DC=int,DC=net" -samid "adm_xyz_SPServiceApps" -upn [email protected] -fn "SharePoint Service Applications" -ln "XYZ" -display "SharePoint Service Applications XYZ" -pwd "continue2013" -desc "Non Human Account" -office "Head Office" -email [email protected] -webpg "www.UnusualCompany.com" -title "SharePoint Service Applications XYZ" -company "X Y Z" -disabled no
dsadd failed:CN=SharePoint Service Applications XYZ,OU=Users,OU=District UVW,OU=XYZ,DC=domain-universe,DC=int,DC=net:The name provided is not a properly formed account name.
type dsadd /? for help.

┌─────────────────────────────────────┐
│ Executed Tue 07/02/2013 13:59:57.88 │ As [admin-of-change]
└─────────────────────────────────────┘

UPN을 줄이면 해결됩니다.

C:\Users\admin-of-change>DSAdd.exe user "CN=SharePoint Service Applications XYZ,OU=Users,OU=District UVW,OU=XYZ,DC=domain-universe,DC=int,DC=net" -samid "adm_xyz_SPSvcApps" -upn [email protected] -fn "SharePoint Service Applications" -ln "XYZ" -display "SharePoint Service Applications XYZ" -pwd "continue2013" -desc "Non Human Account" -office "Head Office" -email [email protected] -webpg "www.UnusualCompany.com" -title "SharePoint Service Applications XYZ" -company "X Y Z" -disabled no
dsadd succeeded:CN=SharePoint Service Applications XYZ,OU=Users,OU=Users,OU=District UVW,OU=XYZ,DC=domain-universe,DC=int,DC=net

┌─────────────────────────────────────┐
│ Executed Tue 07/02/2013 14:06:21.08 │ As [admin-of-change]
└─────────────────────────────────────┘

개선을 위한 어떤 의견이라도 환영합니다.

관련 정보