Skip to content

Commit ac4d1a8

Browse files
committed
Added section on IWA using NTLM/Kerberos
1 parent 8a211f2 commit ac4d1a8

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

guide/03 The GIS/Using the GIS.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,9 @@
605605
}
606606
],
607607
"metadata": {
608+
"anaconda-cloud": {},
608609
"kernelspec": {
609-
"display_name": "Python 3",
610+
"display_name": "Python [default]",
610611
"language": "python",
611612
"name": "python3"
612613
},

guide/03 The GIS/Working with different authentication schemes.ipynb

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"* users using LDAP, via \n",
1313
" * Basic authentication \n",
1414
" * Portal tier authentication\n",
15+
"* users using Integrated Windows Authentication (IWA) through NTLM or Kerberos\n",
1516
"* smart card users / PKI authentication using certificate and key files\n",
1617
"* users connected to an ArcGIS Enterprise instance using ArcGIS Pro\n",
1718
"\n",
@@ -250,6 +251,39 @@
250251
"print(\"Logged in as: \" + gis.properties.user.username)"
251252
]
252253
},
254+
{
255+
"cell_type": "markdown",
256+
"metadata": {},
257+
"source": [
258+
"## Integrated Windows Authentication using NTLM or Kerberos\n",
259+
"\n",
260+
"If your portal is configured to pick up your Windows credeintials using NTLM or Kerberos, you can omit passing in the username and password. The ArcGIS Python API is able to figure out when the GIS is using Windows authentication and picks the login credentials from the currently running process providing a seamless and secure login experience. Windows authentication only works on the Windows OS and requires pywin32 and kerberos-sspi python packages."
261+
]
262+
},
263+
{
264+
"cell_type": "code",
265+
"execution_count": 8,
266+
"metadata": {
267+
"collapsed": false
268+
},
269+
"outputs": [
270+
{
271+
"name": "stdout",
272+
"output_type": "stream",
273+
"text": [
274+
"\n",
275+
"\n",
276+
"Integrated Windows Authentication using NTLM or Kerberos\n",
277+
"Logged in as: rohi3999@AVWORLD\n"
278+
]
279+
}
280+
],
281+
"source": [
282+
"print(\"\\n\\nIntegrated Windows Authentication using NTLM or Kerberos\") \n",
283+
"gis = GIS(\"https://portalname.domain.com/webcontext\")\n",
284+
"print(\"Logged in as: \" + gis.properties.user.username)"
285+
]
286+
},
253287
{
254288
"cell_type": "markdown",
255289
"metadata": {},
@@ -270,7 +304,7 @@
270304
},
271305
{
272306
"cell_type": "code",
273-
"execution_count": 8,
307+
"execution_count": 9,
274308
"metadata": {
275309
"collapsed": false
276310
},
@@ -292,8 +326,9 @@
292326
}
293327
],
294328
"metadata": {
329+
"anaconda-cloud": {},
295330
"kernelspec": {
296-
"display_name": "Python 3",
331+
"display_name": "Python [default]",
297332
"language": "python",
298333
"name": "python3"
299334
},

0 commit comments

Comments
 (0)