[DOCS-5928] Kerberos for windows shell parameters are incorrectly escaped for cmd.exe Created: 30/Jul/15  Updated: 30/Oct/23  Resolved: 11/Oct/17

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.4, mongodb-2.6, mongodb-3.0, 3.4.0
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Luke Prochazka Assignee: Brian Moss
Resolution: Done Votes: 0
Labels: CMD, PowerShell
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows cmd shell


Issue Links:
Related
Participants:
Days since reply: 6 years, 18 weeks, 2 days ago

 Description   

According to step 5, the auth database is single quoted as '$external'.

The quotes are not required for the Windows cmd.exe shell, which is the default shell.

However the quotes can be used when using the Windows PowerShell, which is not the default shell.

I would suggest updating the docs to remove the single quote and add caveats the this syntax is specific to the cmd shell.

Optionally add the PowerShell syntax and caveats.



 Comments   
Comment by Githook User [ 09/Oct/17 ]

Author:

{'email': 'kallimachos@gmail.com', 'name': 'Brian Moss', 'username': 'kallimachos'}

Message: DOCS-5928 cmd.exe vs PowerShell syntax

Provide correct syntax for cmd.exe and Powershell.

Closes DOCS-5928

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.2
https://github.com/mongodb/docs/commit/bef30fea45f0c27ebc971efcee1db757a37f933a

Comment by Githook User [ 09/Oct/17 ]

Author:

{'email': 'kallimachos@gmail.com', 'name': 'Brian Moss', 'username': 'kallimachos'}

Message: DOCS-5928 cmd.exe vs PowerShell syntax

Provide correct syntax for cmd.exe and Powershell.

Closes DOCS-5928

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.2
https://github.com/mongodb/docs/commit/bef30fea45f0c27ebc971efcee1db757a37f933a

Comment by Githook User [ 09/Oct/17 ]

Author:

{'email': 'kallimachos@gmail.com', 'name': 'Brian Moss', 'username': 'kallimachos'}

Message: DOCS-5928 cmd.exe vs PowerShell syntax

Provide correct syntax for cmd.exe and Powershell.

Closes DOCS-5928

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.4
https://github.com/mongodb/docs/commit/90a4ee7cce9102949663b74dbcbd0ba000a8d402

Comment by Githook User [ 09/Oct/17 ]

Author:

{'email': 'kallimachos@gmail.com', 'name': 'Brian Moss', 'username': 'kallimachos'}

Message: DOCS-5928 cmd.exe vs PowerShell syntax

Provide correct syntax for cmd.exe and Powershell.

Closes DOCS-5928

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v3.4
https://github.com/mongodb/docs/commit/90a4ee7cce9102949663b74dbcbd0ba000a8d402

Comment by Githook User [ 09/Oct/17 ]

Author:

{'email': 'kallimachos@gmail.com', 'name': 'Brian Moss', 'username': 'kallimachos'}

Message: DOCS-5928 cmd.exe vs PowerShell syntax

Provide correct syntax for cmd.exe and Powershell.

Closes DOCS-5928

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/d642c2d88db2be707d2ceab930555881fbba6570

Comment by Githook User [ 09/Oct/17 ]

Author:

{'email': 'kallimachos@gmail.com', 'name': 'Brian Moss', 'username': 'kallimachos'}

Message: DOCS-5928 cmd.exe vs PowerShell syntax

Provide correct syntax for cmd.exe and Powershell.

Closes DOCS-5928

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/d642c2d88db2be707d2ceab930555881fbba6570

Comment by Brian Moss [ 09/Oct/17 ]

PR: https://github.com/mongodb/docs/pull/2985

Comment by Kevin Pulo [ 30/Jul/15 ]

Actually the single quotes are required for PowerShell. Therefore I think we need to explain fully:

  1. not to use the quotes when using cmd.exe
  2. to use the quotes when using PowerShell
Generated at Thu Feb 08 07:51:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.