Mercurial > emacs
comparison lisp/net/ldap.el @ 72701:891321627212
* net/ldap.el (ldap-search-internal): Handle `auth' key.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 07 Sep 2006 21:16:16 +0000 |
parents | f4495654b2ad |
children | f9449f64d4b8 |
comparison
equal
deleted
inserted
replaced
72700:155209293baf | 72701:891321627212 |
---|---|
488 `filter' is a filter string for the search as described in RFC 1558. | 488 `filter' is a filter string for the search as described in RFC 1558. |
489 `attributes' is a list of strings indicating which attributes to retrieve | 489 `attributes' is a list of strings indicating which attributes to retrieve |
490 for each matching entry. If nil, return all available attributes. | 490 for each matching entry. If nil, return all available attributes. |
491 `attrsonly', if non-nil, indicates that only attributes are retrieved, | 491 `attrsonly', if non-nil, indicates that only attributes are retrieved, |
492 not their associated values. | 492 not their associated values. |
493 `auth' is one of the symbols `simple', `krbv41' or `krbv42'. | |
493 `base' is the base for the search as described in RFC 1779. | 494 `base' is the base for the search as described in RFC 1779. |
494 `scope' is one of the three symbols `sub', `base' or `one'. | 495 `scope' is one of the three symbols `sub', `base' or `one'. |
495 `binddn' is the distinguished name of the user to bind as (in RFC 1779 syntax). | 496 `binddn' is the distinguished name of the user to bind as (in RFC 1779 syntax). |
496 `passwd' is the password to use for simple authentication. | 497 `passwd' is the password to use for simple authentication. |
497 `deref' is one of the symbols `never', `always', `search' or `find'. | 498 `deref' is one of the symbols `never', `always', `search' or `find'. |
510 (attrsonly (plist-get search-plist 'attrsonly)) | 511 (attrsonly (plist-get search-plist 'attrsonly)) |
511 (base (or (plist-get search-plist 'base) | 512 (base (or (plist-get search-plist 'base) |
512 ldap-default-base)) | 513 ldap-default-base)) |
513 (scope (plist-get search-plist 'scope)) | 514 (scope (plist-get search-plist 'scope)) |
514 (binddn (plist-get search-plist 'binddn)) | 515 (binddn (plist-get search-plist 'binddn)) |
516 (auth (plist-get search-plist 'auth)) | |
515 (passwd (plist-get search-plist 'passwd)) | 517 (passwd (plist-get search-plist 'passwd)) |
516 (deref (plist-get search-plist 'deref)) | 518 (deref (plist-get search-plist 'deref)) |
517 (timelimit (plist-get search-plist 'timelimit)) | 519 (timelimit (plist-get search-plist 'timelimit)) |
518 (sizelimit (plist-get search-plist 'sizelimit)) | 520 (sizelimit (plist-get search-plist 'sizelimit)) |
519 (withdn (plist-get search-plist 'withdn)) | 521 (withdn (plist-get search-plist 'withdn)) |
539 (not (equal "" scope))) | 541 (not (equal "" scope))) |
540 (setq arglist (nconc arglist (list (format "-s%s" scope))))) | 542 (setq arglist (nconc arglist (list (format "-s%s" scope))))) |
541 (if (and binddn | 543 (if (and binddn |
542 (not (equal "" binddn))) | 544 (not (equal "" binddn))) |
543 (setq arglist (nconc arglist (list (format "-D%s" binddn))))) | 545 (setq arglist (nconc arglist (list (format "-D%s" binddn))))) |
546 (if (and auth | |
547 (equal 'simple auth)) | |
548 (setq arglist (nconc arglist (list "-x")))) | |
544 (if (and passwd | 549 (if (and passwd |
545 (not (equal "" passwd))) | 550 (not (equal "" passwd))) |
546 (setq arglist (nconc arglist (list (format "-w%s" passwd))))) | 551 (setq arglist (nconc arglist (list (format "-w%s" passwd))))) |
547 (if (and deref | 552 (if (and deref |
548 (not (equal "" deref))) | 553 (not (equal "" deref))) |