MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


LDAP Library Functions                         ldapmodrdn(3LDAP)



NAME
     ldapmodrdn,  ldapmodrdns,  ldapmodrdn2,  ldapmodrdn2s,
     ldaprename, ldaprenames - modify LDAP entry RDN

SYNOPSIS
     cc[ flag... ] file...-l ldap [ library... ]
     #include 
     #include 

     int ldapmodrdn(LDAP *ld, const char *dn, const char *newrdn);


     int ldapmodrdns(LDAP *ld, const char *dn, const char *newrdn,
          int deleteoldrdn);


     int ldapmodrdn2(LDAP *ld, const char *dn, const char *newrdn,
          int deleteoldrdn);


     int ldapmodrdn2s(LDAP *ld, const char *dn,
          const char *newrdn, int deleteoldrdn);


     int ldaprename(LDAP *ld, const char *dn, const char *newrdn,
          const char *newparent, int deleteoldrdn,
          LDAPControl **serverctrls, LDAPControl **clientctrls,
          int *msgidp);


     int ldaprenames(LDAP *ld, const char *dn, const char *newrdn,
          const char *newparent, const int deleteoldrdn,
          LDAPControl **serverctrls,LDAPControl **clientctrls);


DESCRIPTION
     The ldapmodrdn() and ldapmodrdns() functions  perform  an
     LDAP  modify  RDN  (Relative  Distinguished Name) operation.
     They both take dn, the DN (Distinguished Name) of the  entry
     whose RDN is to be changed, and newrdn, the new RDN, to give
     the entry. The old RDN of the entry  is  never  kept  as  an
     attribute  of  the  entry. ldapmodrdn() is asynchronous. It
     return  the  message  id  of  the  operation  it  initiates.
     ldapmodrdns()  is  synchronous.  It returns the LDAP error
     code that indicates the success or failure of the operation.


     The ldapmodrdn2() and ldapmodrdn2s() functions also  per-
     form an LDAP modify RDN operation. They take the same param-
     eters  as  above.   In  addition,   they   both   take   the
     deleteoldrdn  parameter ,which is used as a boolean value to
     indicate whether or not the old RDN values should be deleted



SunOS 5.11          Last change: 22 Octo 2001                   1






LDAP Library Functions                         ldapmodrdn(3LDAP)



     from the entry.


     The  ldaprename(), ldaprenames()  routines  are  used  to
     change  the  name,  that is, the RDN of an entry. These rou-
     tines deprecate  the ldapmodrdn() and  ldapmodrdns() rou-
     tines, as well as ldapmodrdn2() and ldapmodrdn2s().


     The  ldaprename() and  ldaprenames() functions both  sup-
     port LDAPv3 server controls and client controls.

ERORS
     The synchronous (s) versions of these functions  return  an
     LDAP  error  code,  either   LDAPSUCES  or  an error. See
     ldaperror(3LDAP).


     The asynchronous versions return  -1  in  the  event  of  an
     error,    setting   the   lderrno   field   of   ld.    See
     ldaperror(3LDAP) for more details.  Use  ldapresult(3LDAP)
     to determine a particular unsuccessful result.

ATRIBUTES
     See attributes(5) for a description of the following  attri-
     butes  of the ldapmodrdn(), ldapmodrdns(), ldapmodrdn2()
     and ldapmodrdn2s() functions:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Availability                 SUNWcsl (32-bit)            
                                  SUNWcslx (64-bit)           
    
     Interface Stability          Obsolete                    
    



     The ldaprename() and  ldaprenames()  functions  have  the
     following attributes:












SunOS 5.11          Last change: 22 Octo 2001                   2






LDAP Library Functions                         ldapmodrdn(3LDAP)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Availability                 SUNWcsl (32-bit)            
                                  SUNWcslx (64-bit)           
    
     Interface Stability          Evolving                    
    


SEE ALSO
     ldap(3LDAP), ldaperror(3LDAP) , attributes(5)











































SunOS 5.11          Last change: 22 Octo 2001                   3



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™