|
12 | 12 | "* users using LDAP, via \n", |
13 | 13 | " * Basic authentication \n", |
14 | 14 | " * Portal tier authentication\n", |
| 15 | + "* users using Integrated Windows Authentication (IWA) through NTLM or Kerberos\n", |
15 | 16 | "* smart card users / PKI authentication using certificate and key files\n", |
16 | 17 | "* users connected to an ArcGIS Enterprise instance using ArcGIS Pro\n", |
17 | 18 | "\n", |
|
250 | 251 | "print(\"Logged in as: \" + gis.properties.user.username)" |
251 | 252 | ] |
252 | 253 | }, |
| 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 | + }, |
253 | 287 | { |
254 | 288 | "cell_type": "markdown", |
255 | 289 | "metadata": {}, |
|
270 | 304 | }, |
271 | 305 | { |
272 | 306 | "cell_type": "code", |
273 | | - "execution_count": 8, |
| 307 | + "execution_count": 9, |
274 | 308 | "metadata": { |
275 | 309 | "collapsed": false |
276 | 310 | }, |
|
292 | 326 | } |
293 | 327 | ], |
294 | 328 | "metadata": { |
| 329 | + "anaconda-cloud": {}, |
295 | 330 | "kernelspec": { |
296 | | - "display_name": "Python 3", |
| 331 | + "display_name": "Python [default]", |
297 | 332 | "language": "python", |
298 | 333 | "name": "python3" |
299 | 334 | }, |
|
0 commit comments